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 scene camera associated with the gizmo. This can be useful for adjusting camera settings or retrieving camera information for custom rendering or manipulation tasks.
Example
// Access the Gizmo's SceneCamera
SceneCamera gizmoCamera = Gizmo.Camera;
// Example: Adjust the field of view of the Gizmo's camera
gizmoCamera.FieldOfView = 75.0f;
// Example: Retrieve the position of the Gizmo's camera
Vector3 cameraPosition = gizmoCamera.Position;