Ray PressRay { get; set; }

robot_2Generated
code_blocksInput

Description

The PressRay property of the Gizmo class is a static property that returns a Ray object. This property is marked as obsolete, and it is recommended to use Gizmo.Pressed.Ray instead.

Usage

To access the ray associated with a press event in the Gizmo class, use the Gizmo.Pressed.Ray property instead of PressRay as the latter is obsolete.

Example

// Example of accessing the recommended property
Ray ray = Gizmo.Pressed.Ray;