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 OVRGazePointer.depthScaleMultiplier
dimOnHideRequest : bool
Signature
bool OVRGazePointer.dimOnHideRequest
hideByDefault : bool
Signature
bool OVRGazePointer.hideByDefault
hideTimeoutPeriod : float
Signature
float OVRGazePointer.hideTimeoutPeriod
matchNormalOnPhysicsColliders : bool
Signature
bool OVRGazePointer.matchNormalOnPhysicsColliders
rayTransform : Transform
The gaze ray.
Signature
Transform OVRGazePointer.rayTransform
showTimeoutPeriod : float
Signature
float OVRGazePointer.showTimeoutPeriod

Properties

currentScale : float
[Get]
Current scale applied to pointer.
Signature
float OVRGazePointer.currentScale
hidden : bool
[Get]
Is gaze pointer current visible.
Signature
bool OVRGazePointer.hidden
instance : OVRGazePointer
[Get]
Signature
OVRGazePointer OVRGazePointer.instance
SelectionProgress : float
[Get][Set]
Signature
float OVRGazePointer.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 OVRGazePointer.visibilityStrength

Methods

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