addCameraEvent
Adds an event that is called when the user moves the camera.
Signatures
- Paramate.Viewport.addCameraEvent( eventHandler )
Details
Adds a custom defined function that is called when the camera gets moved.
Example
function OnCameraChange(){ alert( "Camera change by user!" ); };
oConfig.addCameraEvent( OnCameraChange );
Parameters
- eventHandler
-
A callback function that is executed on camera movement.