Gaze Interaction System
Search Results for

    Show / Hide Table of Contents

    Class GazeInteractable

    Represents an interactable object that responds to gaze-based interactions.

    Inheritance
    System.Object
    GazeInteractable
    Namespace: TS.GazeInteraction
    Assembly: .dll
    Syntax
    public class GazeInteractable : MonoBehaviour

    Fields

    OnGazeActivated

    Declaration
    public UnityEvent OnGazeActivated
    Field Value
    Type Description
    UnityEvent

    OnGazeEnter

    Declaration
    public UnityEvent OnGazeEnter
    Field Value
    Type Description
    UnityEvent

    OnGazeExit

    Declaration
    public UnityEvent OnGazeExit
    Field Value
    Type Description
    UnityEvent

    OnGazeStay

    Declaration
    public UnityEvent OnGazeStay
    Field Value
    Type Description
    UnityEvent

    OnGazeToggle

    Declaration
    public UnityEvent<bool> OnGazeToggle
    Field Value
    Type Description
    UnityEvent<bool>

    Properties

    IsActivable

    Indicates whether the interactable is activable.

    Declaration
    public bool IsActivable { get; }
    Property Value
    Type Description
    bool

    IsActivated

    Indicates whether the interactable is currenlty activated.

    Declaration
    public bool IsActivated { get; }
    Property Value
    Type Description
    bool

    IsEnabled

    Indicates whether the interactable is enabled.

    Declaration
    public bool IsEnabled { get; set; }
    Property Value
    Type Description
    bool

    Methods

    Activate()

    Activates the interactable and invokes the activated event.

    Declaration
    public void Activate()

    Enable(bool)

    Enables or disables the interactable game object.

    Declaration
    public void Enable(bool enable)
    Parameters
    Type Name Description
    bool enable

    True to enable, false to disable.

    GazeEnter(GazeInteractor, Vector3)

    Invokes the gaze enter event.

    Declaration
    public void GazeEnter(GazeInteractor interactor, Vector3 point)
    Parameters
    Type Name Description
    GazeInteractor interactor
    Vector3 point

    GazeExit(GazeInteractor)

    Invokes the gaze exit event after the _exitDelay duration.

    Declaration
    public void GazeExit(GazeInteractor interactor)
    Parameters
    Type Name Description
    GazeInteractor interactor

    GazeStay(GazeInteractor, Vector3)

    Invokes the gaze stay event.

    Declaration
    public void GazeStay(GazeInteractor interactor, Vector3 point)
    Parameters
    Type Name Description
    GazeInteractor interactor
    Vector3 point

    Events

    Activated

    Event triggered when the interactable is activated.

    Declaration
    public event GazeInteractable.OnActivated Activated
    Event Type
    Type Description
    GazeInteractable.OnActivated

    Enter

    Event triggered when the gaze enters the interactable.

    Declaration
    public event GazeInteractable.OnEnter Enter
    Event Type
    Type Description
    GazeInteractable.OnEnter

    Exit

    Event triggered when the gaze exits the interactable.

    Declaration
    public event GazeInteractable.OnExit Exit
    Event Type
    Type Description
    GazeInteractable.OnExit

    Stay

    Event triggered while the gaze remains on the interactable.

    Declaration
    public event GazeInteractable.OnStay Stay
    Event Type
    Type Description
    GazeInteractable.OnStay
    In This Article
    Back to top Generated by DocFX