System.Object Object { get; set; }

robot_2Generated
code_blocksInput

Description

The Object property in the Gizmo class is a static property that holds a reference to a generic object. This property can be used to store or retrieve any object associated with the current gizmo context.

Usage

Use the Object property to associate a specific object with the current gizmo operation. This can be useful for tracking or manipulating objects within the gizmo's scope.

Example

// Example of setting and getting the Object property

// Assign an object to the Gizmo.Object property
Gizmo.Object = myGameObject;

// Retrieve the object from the Gizmo.Object property
var currentObject = Gizmo.Object;

// Check if the object is of a specific type
if (currentObject is GameObject gameObject)
{
    // Perform operations on the gameObject
}