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

OVRGazePointer Class

Extends OVRCursor
UI pointer driven by gaze input.

Fields

depthScaleMultiplier : float
Signature
float depthScaleMultiplier
dimOnHideRequest : bool
Signature
bool dimOnHideRequest
hideByDefault : bool
Signature
bool hideByDefault
hideTimeoutPeriod : float
Signature
float hideTimeoutPeriod
matchNormalOnPhysicsColliders : bool
Signature
bool matchNormalOnPhysicsColliders
rayTransform : Transform
The gaze ray.
Signature
Transform rayTransform
showTimeoutPeriod : float
Signature
float showTimeoutPeriod

Properties

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

Methods

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