3using System.Collections.Generic;
4using System.Collections.ObjectModel;
12 [DisallowMultipleComponent]
13 [AddComponentMenu(
"Cesium/Cesium Camera Manager")]
14 [Icon(
"Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")]
30 if (gameObject ==
null)
throw new ArgumentNullException(
"gameObject");
44 GameObject owner = georeference ==
null ? gameObject : georeference.gameObject;
45 if (owner ==
null)
return null;
50 #region User-editable properties
53 private bool _useMainCamera =
true;
61 get => this._useMainCamera;
64 this._useMainCamera = value;
69 private bool _useSceneViewCameraInEditor =
true;
78 get => this._useSceneViewCameraInEditor;
81 this._useSceneViewCameraInEditor = value;
86 private List<Camera> _additionalCameras =
new List<Camera>();
100 get => this._additionalCameras;
Manages the set of cameras that are used for Cesium3DTileset culling and level-of-detail.
static CesiumCameraManager GetOrCreate(GameObject gameObject)
Gets the instance suitable for use with the given game object.
List< Camera > additionalCameras
Other cameras to use for Cesium3DTileset culling and level-of-detail, in addition to the ones control...
bool useSceneViewCameraInEditor
Determines whether the camera associated with the Editor's active scene view should be used for Cesiu...
bool useMainCamera
Determines whether the camera tagged MainCamera should be used for Cesium3DTileset culling and level-...
Controls how global geospatial coordinates are mapped to coordinates in the Unity scene.