Helper script that can be placed on any game object that will cast a visible ray cast out from the object and places a cursor on a canvas if it intersects one.
Fields
MeshRenderer Renderer[Get]
Reference to the mesh renderer that is used to render the visible ray cast.
Material NormalMaterial[Get]
The default material used for the ray cast object.
Material PinchMaterial[Get]
The material used for the ray cast object when it's active.
Being active can come from button or trigger input from controllers or pinch input from hand tracking.
GameObject Cursor[Get]
The game object used to represent the cursor which is placed on the canvas where the ray intersects it.
SpriteRenderer CursorFill[Get]
The sprite object that will be displayed on the cursor when the ray cast is active.
Being active can come from button or trigger input from controllers or pinch input from hand tracking.