The LocalCameraTransform
property provides the transform of the camera in local space. This property is useful for obtaining the camera's position, rotation, and scale relative to its parent object or local coordinate system.
The LocalCameraTransform
property provides the transform of the camera in local space. This property is useful for obtaining the camera's position, rotation, and scale relative to its parent object or local coordinate system.
Use the LocalCameraTransform
property to access the camera's transform in local space. This can be particularly useful when you need to perform operations or calculations that are relative to the camera's local coordinate system.
// Accessing the local camera transform Transform localTransform = Gizmo.LocalCameraTransform; // Example usage: Getting the local position of the camera Vector3 localPosition = localTransform.Position; // Example usage: Getting the local rotation of the camera Rotation localRotation = localTransform.Rotation; // Example usage: Getting the local scale of the camera Vector3 localScale = localTransform.Scale;