API reference

GazeHoverGazeRouter Class

Extends MonoBehaviour
Drives the per-button GazeHighlightController overlays from ISDK eye-gaze input.
ISDK exposes gaze on a Unity canvas as a single canvas-level GazeInteractable (whose GazeInteractable.RootCanvas is a ConecastableCanvas), not one interactable per button. So per-frame this router reads each active GazeInteractor's GazeInteractor.CandidateHitPoint (the gaze "cursor" on the surface), resolves which button overlay under the hovered canvas contains that point, and drives that controller's GazeHighlightController.Hover + GazeHighlightController.SetCustomCursorPosition.
Place one instance in the scene (e.g. on the GazeableUI root). Ray/poke hover is handled separately by the standard ISDK pointer path and is unaffected by this component.

Methods

AddGazeInteractor ( interactor )
Register a GazeInteractor spawned at runtime so this router reads it.
Prefer this over a per-frame scene rescan when interactors are created after the scene loads.
Signature
void Oculus.Interaction.Samples.GazeHoverGazeRouter.AddGazeInteractor(GazeInteractor interactor)
Parameters
interactor: GazeInteractor
Returns
void
RefreshInteractors ()
Re-scan the scene for GazeInteractors. Used once on enable to pick up interactors already present.
Signature
void Oculus.Interaction.Samples.GazeHoverGazeRouter.RefreshInteractors()
Returns
void
RemoveGazeInteractor ( interactor )
Remove a previously registered GazeInteractor (e.g. before it is destroyed).
Signature
void Oculus.Interaction.Samples.GazeHoverGazeRouter.RemoveGazeInteractor(GazeInteractor interactor)
Parameters
interactor: GazeInteractor
Returns
void