API reference

OVRGazePointer Class

Extends OVRCursor
UI pointer driven by gaze input.

Fields

bool hideByDefault[Get]
float showTimeoutPeriod[Get]
float hideTimeoutPeriod[Get]
bool dimOnHideRequest[Get]
float depthScaleMultiplier[Get]
bool matchNormalOnPhysicsColliders[Get]
Transform rayTransform[Get]
The gaze ray.

Properties

bool hidden[Get]
Is gaze pointer current visible.
float currentScale[Get]
Current scale applied to pointer.
static OVRGazePointer instance[Get]
float visibilityStrength[Get]
Used to determine alpha level of gaze cursor.
Could also be used to determine cursor size, for example, as the cursor fades out.
float SelectionProgress[Get]

Member Functions

void Awake ( )
virtual override void SetCursorStartDest
( Vector3 _,
Vector3 pos,
Vector3 normal )
Set position and orientation of pointer.
Parameters
pos
normal
virtual override void SetCursorRay
( Transform ray )
void RequestHide ( )
Request the pointer be hidden.
void RequestShow ( )
Request the pointer be shown.
Hide requests take priority