Transform Transform { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Transform property of the Gizmo class provides access to the transformation matrix used by the gizmo. This matrix defines the position, rotation, and scale of the gizmo in the 3D space.

Usage

Use the Transform property to get or set the transformation matrix of the gizmo. This is useful when you need to manipulate the gizmo's position, rotation, or scale programmatically.

Example

// Example of accessing the Transform property
Transform currentTransform = Gizmo.Transform;

// Example of setting a new Transform
Gizmo.Transform = new Transform(Vector3.Zero, Rotation.Identity, 1.0f);