Description
The RayDepth
property of the Gizmo
class represents the depth of the ray used in gizmo operations. It is a static property, meaning it is shared across all instances of the Gizmo
class. The value is of type System.Single
, which is a floating-point number.
Usage
Use the RayDepth
property to get or set the depth of the ray used in gizmo operations. This can be useful when you need to adjust the depth at which the gizmo interacts with objects in the scene.
Example
// Example of setting the RayDepth property
Gizmo.RayDepth = 10.0f;
// Example of getting the RayDepth property
float currentRayDepth = Gizmo.RayDepth;
// Use the currentRayDepth in your logic
if (currentRayDepth > 5.0f)
{
// Perform some operation
}