getCamera, setCamera

Store the current camera position in a global variable. Later you can restore the same camera position.

Demo

  1. Adjust the camera position (view angle, zoom) as you like.

  2. Get the current camera position and store it in a global variable

  3. Set camera to a different view, for example top view.

  4. Restore the previous camera position.