Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumForUnity.CesiumCameraController Class Reference

A camera controller that can easily move around and view the globe while maintaining a sensible orientation. More...

Inheritance diagram for CesiumForUnity.CesiumCameraController:

Properties

bool enableMovement [get, set]
 Whether movement is enabled on this controller.
 
bool enableRotation [get, set]
 Whether rotation is enabled on this controller.
 
float defaultMaximumSpeed [get, set]
 The maximum speed of this controller when dynamic speed is disabled.
 
bool enableDynamicSpeed [get, set]
 Whether to enable dynamic speed on this controller.
 
float dynamicSpeedMinHeight [get, set]
 The minimum height where dynamic speed starts to take effect.
 
bool enableDynamicClippingPlanes [get, set]
 Whether to dynamically adjust the camera's clipping planes so that the globe will not be clipped from far away.
 
float dynamicClippingPlanesMinHeight [get, set]
 The height to start dynamically adjusting the camera's clipping planes.
 

Detailed Description

A camera controller that can easily move around and view the globe while maintaining a sensible orientation.

As the camera moves across the horizon, it automatically changes its own up direction such that the world always looks right-side up.

Definition at line 25 of file CesiumCameraController.cs.

Property Documentation

◆ defaultMaximumSpeed

float CesiumForUnity.CesiumCameraController.defaultMaximumSpeed
getset

The maximum speed of this controller when dynamic speed is disabled.

If dynamic speed is enabled, this value will not be used.

Definition at line 68 of file CesiumCameraController.cs.

◆ dynamicClippingPlanesMinHeight

float CesiumForUnity.CesiumCameraController.dynamicClippingPlanesMinHeight
getset

The height to start dynamically adjusting the camera's clipping planes.

Below this height, the clipping planes will be set to their initial values.

Definition at line 125 of file CesiumCameraController.cs.

◆ dynamicSpeedMinHeight

float CesiumForUnity.CesiumCameraController.dynamicSpeedMinHeight
getset

The minimum height where dynamic speed starts to take effect.

Below this height, the speed will be set to the object's height from the Earth, which makes it move slowly when it is right above a tileset.

Definition at line 97 of file CesiumCameraController.cs.

◆ enableDynamicClippingPlanes

bool CesiumForUnity.CesiumCameraController.enableDynamicClippingPlanes
getset

Whether to dynamically adjust the camera's clipping planes so that the globe will not be clipped from far away.

Objects that are close to the camera but far above the globe in space may not appear.

Definition at line 111 of file CesiumCameraController.cs.

◆ enableDynamicSpeed

bool CesiumForUnity.CesiumCameraController.enableDynamicSpeed
getset

Whether to enable dynamic speed on this controller.

If enabled, the controller's speed will change dynamically based on elevation and other factors.

Definition at line 82 of file CesiumCameraController.cs.

◆ enableMovement

bool CesiumForUnity.CesiumCameraController.enableMovement
getset

Whether movement is enabled on this controller.

Movement is controlled using the W, A, S, D keys, as well as the Q and E keys for vertical movement with respect to the globe.

Definition at line 37 of file CesiumCameraController.cs.

◆ enableRotation

bool CesiumForUnity.CesiumCameraController.enableRotation
getset

Whether rotation is enabled on this controller.

Rotation is controlled by movement of the mouse.

Definition at line 54 of file CesiumCameraController.cs.


The documentation for this class was generated from the following file: