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

GazeInteractor Class

This interactor is driven by eye tracking and allows selecting and moving selected objects

Fields

CandidateProperties : override object
The ICandidatePosition implementation used to compare interaction candidates.
Signature
override object Oculus.Interaction.GazeInteractor.CandidateProperties
CandidateProvider : IGazeCandidateProvider
Signature
IGazeCandidateProvider Oculus.Interaction.GazeInteractor.CandidateProvider
MaxRayLength : float
Signature
float Oculus.Interaction.GazeInteractor.MaxRayLength
PointerTransform : Transform
Signature
Transform Oculus.Interaction.GazeInteractor.PointerTransform
Ray : Ray
The current gaze ray
Signature
Ray Oculus.Interaction.GazeInteractor.Ray

Properties

CandidateHitNormal : Vector3
[Get]
The current normal vector (world space) of the CandidateHitPoint
Signature
Vector3 Oculus.Interaction.GazeInteractor.CandidateHitNormal
CandidateHitPoint : Vector3
[Get]
The current intersection point (world space) of this interactor and its candidate interactable
Effectively the "cursor" position of this interactor.
Signature
Vector3 Oculus.Interaction.GazeInteractor.CandidateHitPoint
WorldPose : Pose
[Get]
The world pose of the gaze origin
Signature
Pose Oculus.Interaction.GazeInteractor.WorldPose

Protected Methods

Awake ()
Signature
override void Oculus.Interaction.GazeInteractor.Awake()
Returns
override void
ComputeCandidate ()
Signature
override GazeInteractable Oculus.Interaction.GazeInteractor.ComputeCandidate()
Returns
override GazeInteractable
ComputeCandidateTiebreaker ( a , b )
Signature
override int Oculus.Interaction.GazeInteractor.ComputeCandidateTiebreaker(GazeInteractable a, GazeInteractable b)
Returns
override int
ComputePointerPose ()
Signature
override Pose Oculus.Interaction.GazeInteractor.ComputePointerPose()
Returns
override Pose
DoHoverUpdate ()
Signature
override void Oculus.Interaction.GazeInteractor.DoHoverUpdate()
Returns
override void
DoNormalUpdate ()
Signature
override void Oculus.Interaction.GazeInteractor.DoNormalUpdate()
Returns
override void
DoSelectUpdate ()
Signature
override void Oculus.Interaction.GazeInteractor.DoSelectUpdate()
Returns
override void
InteractableSelected ( interactable )
Signature
override void Oculus.Interaction.GazeInteractor.InteractableSelected(GazeInteractable interactable)
Parameters
interactable: GazeInteractable
Returns
override void
InteractableUnselected ( interactable )
Signature
override void Oculus.Interaction.GazeInteractor.InteractableUnselected(GazeInteractable interactable)
Parameters
interactable: GazeInteractable
Returns
override void
Start ()
Signature
override void Oculus.Interaction.GazeInteractor.Start()
Returns
override void

Methods

InjectAllGazeInteractor ( selector , relativeOrigin , hitTester )
Signature
void Oculus.Interaction.GazeInteractor.InjectAllGazeInteractor(ISelector selector, Transform relativeOrigin, IGazeCandidateProvider hitTester)
Parameters
selector: ISelector
relativeOrigin: Transform
hitTester: IGazeCandidateProvider
Returns
void
InjectHitTester ( hitTester )
Signature
void Oculus.Interaction.GazeInteractor.InjectHitTester(IGazeCandidateProvider hitTester)
Parameters
hitTester: IGazeCandidateProvider
Returns
void
InjectPointerTransform ( pointerTransform )
Signature
void Oculus.Interaction.GazeInteractor.InjectPointerTransform(Transform pointerTransform)
Parameters
pointerTransform: Transform
Returns
void
InjectSelector ( selector )
Signature
void Oculus.Interaction.GazeInteractor.InjectSelector(ISelector selector)
Parameters
selector: ISelector
Returns
void

Inner Interface

IGazeCandidateProvider Interface

Methods

TryGetCandidate ( candidate , eyePoseWorld , hitPointWorld , hitNormalWorld )
Provides a GazeInteractable candidate for interaction.
Signature
bool Oculus.Interaction.GazeInteractor.IGazeCandidateProvider.TryGetCandidate(out GazeInteractable candidate, out Pose eyePoseWorld, out Vector3 hitPointWorld, out Vector3 hitNormalWorld)
Parameters
candidate: out GazeInteractable  The candidate GazeInteractable
eyePoseWorld: out Pose  The eye pose in world space at the time of the hit test
hitPointWorld: out Vector3  The hit point of the hit test on the object's surface
hitNormalWorld: out Vector3  The normal of the object's surface at hitPointWorld
Returns
bool  True if a valid candidate was hit.

Inner Class

GazeCandidateProperties Class

Constructors

GazeCandidateProperties ( candidatePosition )
Signature
Oculus.Interaction.GazeInteractor.GazeCandidateProperties.GazeCandidateProperties(Vector3 candidatePosition)
Parameters
candidatePosition: Vector3

Properties

CandidatePosition : Vector3
[Get]
Signature
Vector3 Oculus.Interaction.GazeInteractor.GazeCandidateProperties.CandidatePosition