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

GazeFocusProvider Class

Implements PanelFocusProvider
Modifiers: final
A PanelFocusProvider that uses the eye gaze controller to determine which panel the user is looking at. For each tracked panel, it projects the gaze ray onto the panel's plane, clamps to bounds, and returns the single panel whose closest point has the highest dot product with the gaze direction (within a 60° cone).

Signature

class GazeFocusProvider : PanelFocusProvider

Constructors

GazeFocusProvider ()
Signature
constructor()

Methods

getFocusedPanelIds ()
Returns the set of panel entity IDs that should be updated this frame.
Signature
open override fun getFocusedPanelIds(): Set<Long>
Returns
Set
setPanelIdSource ( source )
Called by UiUnderstandingSystem to supply a source of all tracked panel IDs.
Signature
open override fun setPanelIdSource(source: () -> Set<Long>)
Parameters
source: Function0
setSceneObjectSystem ( sos )
Called by UiUnderstandingSystem to supply the SceneObjectSystem reference.
Signature
open override fun setSceneObjectSystem(sos: SceneObjectSystem?)
Parameters