float RayDepth { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The RayDepth property of the Gizmo class in the Sandbox namespace represents the depth of the ray used in gizmo operations. This property is a static, public, and read-only property of type System.Single (float). It is used to determine how far the ray extends into the scene when interacting with gizmos.

Usage

Use the RayDepth property to get the current depth value of the ray used in gizmo operations. This can be useful when you need to understand or modify how deep the ray should penetrate into the scene for accurate gizmo interaction.

Example

// Example of accessing the RayDepth property
float currentRayDepth = Gizmo.RayDepth;

// Use the currentRayDepth in your logic
if (currentRayDepth > 10.0f)
{
    // Perform some action based on the ray depth
}