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.
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.
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 of accessing the recommended property Ray ray = Gizmo.Pressed.Ray;