Description
The PressRay
property of the Gizmo
class is a static property that returns a Ray
object. This property is marked as obsolete, indicating that it should no longer be used in new code. Instead, developers are advised to use Gizmo.Pressed.Ray
for accessing the ray associated with a press event.
Usage
To access the ray associated with a press event, use the recommended Gizmo.Pressed.Ray
property instead of PressRay
. This ensures that your code remains up-to-date with the latest API changes and avoids potential issues with deprecated features.
Example
// Obsolete usage
Ray ray = Gizmo.PressRay; // This is deprecated
// Recommended usage
Ray ray = Gizmo.Pressed.Ray;