API reference
API reference
Select your platform
No SDKs available
No versions available

OVRInputRayData Struct

Fields

ActivationStrength : float
A float from 0 to 1 that controls the cursor activation state.
As the value moves closer to one, the cursor will shrink in size and the cursor fill will become more visible.
Signature
float ActivationStrength
DistanceToCanvas : float
The distance from the base of the ray cast game object to the canvas it intersected with.
Signature
float DistanceToCanvas
IsActive : bool
Indicates whether the ray is active/selecting something.
Being active can come from button or trigger input from controllers or pinch input from hand tracking.
Signature
bool IsActive
IsOverCanvas : bool
Indicates whether the ray cast is intersecting a canvas.
Signature
bool IsOverCanvas
WorldNormal : Vector3
The normal of the ray cast game object.
Signature
Vector3 WorldNormal
WorldPosition : Vector3
The world position of the ray cast game object.
Signature
Vector3 WorldPosition