Description
The Camera
property of the Gizmo
class provides access to the SceneCamera
used by the gizmo system. This camera is responsible for rendering the scene from the perspective of the gizmo, allowing for accurate manipulation and visualization of objects within the scene.
Usage
Use the Camera
property to access the current SceneCamera
associated with the gizmo. This can be useful for operations that require knowledge of the camera's position, orientation, or other properties when interacting with the scene through the gizmo system.
Example
// Accessing the Gizmo's Camera
SceneCamera gizmoCamera = Gizmo.Camera;
// Example usage: Get the camera's position
Vector3 cameraPosition = gizmoCamera.Position;
// Example usage: Set the camera's field of view
float newFOV = 75.0f;
gizmoCamera.FieldOfView = newFOV;