Search Results for

    Show / Hide Table of Contents

    Class GazeBehavior

    Gaze behavior class.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    Behavior
    GazeBehavior
    Implements
    IDependencyObject
    Inherited Members
    Behavior.Family
    Behavior.UpdateOrder
    Behavior.OnDetach()
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.OnActivated()
    Component.Start()
    Component.OnDeactivated()
    Component.OnDestroy()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.RefreshPrefab(Prefab)
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Components.Toolkit
    Assembly: Evergine.Components.dll
    Syntax
    public class GazeBehavior : Behavior, IDependencyObject

    Fields

    AirTapEntity

    Gets or sets the AirTap prefab instance.

    Declaration
    public Entity AirTapEntity
    Field Value
    Type Description
    Entity

    DefaultDistance

    Gets or sets the cursor distance (meters).

    Declaration
    [RenderPropertyAsFInput(0.1, 20, Tooltip = "Maximum gaze distance, in meters, for calculating a hit.", AsSlider = true, DesiredChange = 0.1, DesiredLargeChange = 1, DefaultValue = 2)]
    public float DefaultDistance
    Field Value
    Type Description
    float

    HandleMouse

    Gets a value indicating whether this gaze will handle mouse input.

    Declaration
    public bool HandleMouse
    Field Value
    Type Description
    bool

    KeepScale

    Gets or sets a value indicating whether the cursor maintains scale behavior.

    Declaration
    [RenderProperty(Tooltip = "Always maintain cursor scale.")]
    public bool KeepScale
    Field Value
    Type Description
    bool

    MaxGazeDistance

    Gets or sets the cursor distance (meters).

    Declaration
    [RenderPropertyAsFInput(0.2, 100000, Tooltip = "Maximum gaze distance, in meters, for calculating a hit.", DefaultValue = 100)]
    public float MaxGazeDistance
    Field Value
    Type Description
    float

    ReadyEntity

    Gets or sets the ready prefab instance.

    Declaration
    public Entity ReadyEntity
    Field Value
    Type Description
    Entity

    UndetectedEntity

    Gets or sets undetected prefab instance.

    Declaration
    public Entity UndetectedEntity
    Field Value
    Type Description
    Entity

    Properties

    CurrentState

    Gets the cursor's current state.

    Declaration
    public GazeBehavior.States CurrentState { get; }
    Property Value
    Type Description
    GazeBehavior.States

    GazeAirTapState

    Gets the current state of the gaze button.

    Declaration
    public ButtonState GazeAirTapState { get; }
    Property Value
    Type Description
    ButtonState

    GazeHitResult

    Gets the current gaze hit result.

    Declaration
    public HitResult3D GazeHitResult { get; }
    Property Value
    Type Description
    HitResult3D

    GazeRay

    Gets the gaze ray.

    Declaration
    public Ray GazeRay { get; }
    Property Value
    Type Description
    Ray

    Methods

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if everything is OK.

    Overrides
    Behavior.OnAttached()

    Update(TimeSpan)

    Updates the method.

    Declaration
    protected override void Update(TimeSpan gameTime)
    Parameters
    Type Name Description
    TimeSpan gameTime

    Game time.

    Overrides
    Behavior.Update(TimeSpan)

    Events

    AirTapEvent

    AirTap state event

    Declaration
    public event EventHandler<HitResult3D> AirTapEvent
    Event Type
    Type Description
    EventHandler<HitResult3D>

    ReadyEvent

    Ready state event

    Declaration
    public event EventHandler ReadyEvent
    Event Type
    Type Description
    EventHandler

    UndetectedEvent

    Undetected state event

    Declaration
    public event EventHandler UndetectedEvent
    Event Type
    Type Description
    EventHandler

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX