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

OVREyeGaze Class

This class updates the transform of the GameObject to point toward an eye direction.
OVREyeGaze extends MonoBehaviour.

Overview

Public Types

enum
EyeId {
EyeId.Left = OVRPlugin.Eye.Left, EyeId.Right = OVRPlugin.Eye.Right
}
List of eyes.
enum

Properties

bool
True if eye tracking is enabled, otherwise false.
float
A confidence value ranging from 0..1 indicating the reliability of the eye tracking data.

Data Fields

Eye[Get]
GameObject will automatically change position and rotate according to the selected eye.
float
GameObject will not change if detected eye state confidence is below this threshold.
bool
GameObject will automatically change position.
bool
GameObject will automatically rotate.
Transform
Reference frame for eye.
EyeTrackingMode
HeadSpace: Track eye relative to head space.

Details

Detailed Description

See OVRPlugin.EyeGazeState structure for list of eye state parameters.

Member Enumerations

enum OVREyeGaze.EyeId
List of eyes.
Enumerator
Left
= OVRPlugin.Eye.Left
Right
= OVRPlugin.Eye.Right
enum OVREyeGaze.EyeTrackingMode
Enumerator
HeadSpace
WorldSpace
TrackingSpace

Properties

bool OVREyeGaze.EyeTrackingEnabled
True if eye tracking is enabled, otherwise false.
float OVREyeGaze.Confidence
A confidence value ranging from 0..1 indicating the reliability of the eye tracking data.

Fields

EyeId OVREyeGaze.Eye
GameObject will automatically change position and rotate according to the selected eye.
float OVREyeGaze.ConfidenceThreshold
GameObject will not change if detected eye state confidence is below this threshold.
bool OVREyeGaze.ApplyPosition
GameObject will automatically change position.
bool OVREyeGaze.ApplyRotation
GameObject will automatically rotate.
Transform OVREyeGaze.ReferenceFrame
Reference frame for eye.
If it's null, then world reference frame will be used.
EyeTrackingMode OVREyeGaze.TrackingMode
HeadSpace: Track eye relative to head space.
WorldSpace: Track eye in world space. TrackingSpace: Track eye relative to OVRCameraRig.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon