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

OVREyeGaze Class

Extends MonoBehaviour
This class updates the transform of the GameObject to point toward an eye direction.
See OVRPlugin.EyeGazeState structure for list of eye state parameters.

Fields

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

Properties

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

Inner Enums

EyeId Enum

List of eyes.

Enumeration Constants

MemberValue
Left
OVRPlugin.Eye.Left
Right
OVRPlugin.Eye.Right

EyeTrackingMode Enum

Enumeration Constants

Member
HeadSpace
WorldSpace
TrackingSpace