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

Manages the set of cameras that are used for Cesium3DTileset culling and level-of-detail. More...

Inheritance diagram for CesiumForUnity.CesiumCameraManager:

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.
 

Detailed Description

Manages the set of cameras that are used for Cesium3DTileset culling and level-of-detail.

Definition at line 15 of file CesiumCameraManager.cs.

Member Function Documentation

◆ GetOrCreate()

static CesiumCameraManager CesiumForUnity.CesiumCameraManager.GetOrCreate ( GameObject gameObject)
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.

Parameters
gameObjectThe game object.
Returns

Definition at line 28 of file CesiumCameraManager.cs.

Property Documentation

◆ additionalCameras

List<Camera> CesiumForUnity.CesiumCameraManager.additionalCameras
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.

◆ useMainCamera

bool CesiumForUnity.CesiumCameraManager.useMainCamera
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.

◆ useSceneViewCameraInEditor

bool CesiumForUnity.CesiumCameraManager.useSceneViewCameraInEditor
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.


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