![]() |
Cesium for Unity 1.15.2
|
Manages the set of cameras that are used for Cesium3DTileset culling and level-of-detail. More...
Static Public Member Functions | |
static CesiumCameraManager | GetOrCreate (GameObject gameObject) |
Gets the instance suitable for use with the given game object. | |
Properties | |
bool | useMainCamera [get, set] |
Determines whether the camera tagged MainCamera should be used for Cesium3DTileset culling and level-of-detail. | |
bool | useSceneViewCameraInEditor [get, set] |
Determines whether the camera associated with the Editor's active scene view should be used for Cesium3DTileset culling and level-of-detail. | |
List< Camera > | additionalCameras [get] |
Other cameras to use for Cesium3DTileset culling and level-of-detail, in addition to the ones controlled by useMainCamera and useSceneViewCameraInEditor. | |
Manages the set of cameras that are used for Cesium3DTileset culling and level-of-detail.
Definition at line 15 of file CesiumCameraManager.cs.
|
inlinestatic |
Gets the instance suitable for use with the given game object.
This method looks for an existing instance using GetComponentInParent
. If it fails to find one, then it will create one. When one is created, it be added to the same GameObject
that has the CesiumGeoreference
(found using GetComponentInParent
again) if there is one. If there is no CesiumGeoreference
, the instance is added to the originally-provided GameObject
.
gameObject | The game object. |
Definition at line 28 of file CesiumCameraManager.cs.
|
getadd |
Other cameras to use for Cesium3DTileset culling and level-of-detail, in addition to the ones controlled by useMainCamera and useSceneViewCameraInEditor.
These additional cameras will be used even when they are disabled, which is useful for creating a virtual camera that affects Cesium3DTileset loading without being used for rendering.
Definition at line 98 of file CesiumCameraManager.cs.
|
getset |
Determines whether the camera tagged MainCamera
should be used for Cesium3DTileset culling and level-of-detail.
Definition at line 59 of file CesiumCameraManager.cs.
|
getset |
Determines whether the camera associated with the Editor's active scene view should be used for Cesium3DTileset culling and level-of-detail.
In a game, this property has no effect.
Definition at line 76 of file CesiumCameraManager.cs.