This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Unity 1.36 Reference Guide

OVRGazePointer Class Reference

UI pointer driven by gaze input.
OVRCursor inherited by OVRGazePointer.

Private Data Fields

Transform
float
depth ( )
Current depth of pointer from camera
float
int
How many times position has been set this frame.
float
Last time code requested the pointer be shown.
float
Last time pointer was requested to be hidden.
OVRProgressIndicator

Data Fields

bool
float
float
bool
float
bool
Transform
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
Used to determine alpha level of gaze cursor.
float

Private Static Fields

static OVRGazePointer

Public Member Functions

void
Awake ( )
override void
SetCursorStartDest ( Vector3 _, Vector3 pos, Vector3 normal )
Set position and orientation of pointer
override void
SetCursorRay ( Transform ray )
void
Request the pointer be hidden
void
Request the pointer be shown.

Private Member Functions

void
Update ( )
void
void
Hide ( )
void
Show ( )

Object Data Documentation

Transform OVRGazePointer.gazeIcon ( )
float OVRGazePointer.depth ( )
Current depth of pointer from camera
float OVRGazePointer.hideUntilTime ( )
int OVRGazePointer.positionSetsThisFrame ( )
How many times position has been set this frame.
Used to detect when there are no position sets in a frame.
float OVRGazePointer.lastShowRequestTime ( )
Last time code requested the pointer be shown.
Usually when pointer passes over interactive elements.
float OVRGazePointer.lastHideRequestTime ( )
Last time pointer was requested to be hidden.
Usually mouse pointer activity.
OVRProgressIndicator OVRGazePointer.progressIndicator ( )

Field Documentation

bool OVRGazePointer.hideByDefault ( )
float OVRGazePointer.showTimeoutPeriod ( )
float OVRGazePointer.hideTimeoutPeriod ( )
bool OVRGazePointer.dimOnHideRequest ( )
float OVRGazePointer.depthScaleMultiplier ( )
bool OVRGazePointer.matchNormalOnPhysicsColliders ( )
Transform OVRGazePointer.rayTransform ( )
The gaze ray.

Property Documentation

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

Private Static Field Documentation

OVRGazePointer OVRGazePointer._instance ( )

Member Function Documentation

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

Object Data Documentation

void OVRGazePointer.Update ( )
void OVRGazePointer.LateUpdate ( )
void OVRGazePointer.Hide ( )
void OVRGazePointer.Show ( )
The documentation for this class was generated from the following file: Oculus/VR/Scripts/Util/OVRGazePointer.cs