Class GazeDivergenceModule | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Class GazeDivergenceModule

    Allows an implementer to test for a given transforms' position residing within an angular threshold of the HMD

    Inheritance
    Object
    GazeDivergenceModule
    Namespace: UnityEditor.Experimental.EditorVR.Modules
    Syntax
    public sealed class GazeDivergenceModule : IModuleBehaviorCallbacks, IDelayedInitializationModule, IModule, IProvidesDetectGazeDivergence, IFunctionalityProvider

    Properties

    initializationOrder

    Declaration
    public int initializationOrder { get; }
    Property Value
    Type Description
    Int32
    Implements
    IDelayedInitializationModule.initializationOrder

    shutdownOrder

    Declaration
    public int shutdownOrder { get; }
    Property Value
    Type Description
    Int32
    Implements
    IDelayedInitializationModule.shutdownOrder

    Methods

    ConnectSubscriber(Object)

    Declaration
    public void ConnectSubscriber(object obj)
    Parameters
    Type Name Description
    Object obj
    Implements
    IFunctionalityProvider.ConnectSubscriber(Object)

    Initialize()

    Declaration
    public void Initialize()
    Implements
    IDelayedInitializationModule.Initialize()

    IsAboveDivergenceThreshold(Transform, Single, Boolean)

    Test for a transform residing with a defined angular divergence threshold

    Declaration
    public bool IsAboveDivergenceThreshold(Transform objectToTest, float divergenceThreshold, bool disregardTemporalStability = true)
    Parameters
    Type Name Description
    Transform objectToTest

    Vector to test for a threshold cross with relation to the gazeSource forward vector

    Single divergenceThreshold

    Threshold, in degrees, via doc product conversion of this angular value

    Boolean disregardTemporalStability

    If true, mandate that divergence detection occur, regardless of the gaze being stable

    Returns
    Type Description
    Boolean

    True if the object is beyond the divergence threshold, False if it is within the defined range

    Implements
    IProvidesDetectGazeDivergence.IsAboveDivergenceThreshold(Transform, Single, Boolean)

    LoadModule()

    Declaration
    public void LoadModule()
    Implements
    IModule.LoadModule()

    LoadProvider()

    Declaration
    public void LoadProvider()
    Implements
    IFunctionalityProvider.LoadProvider()

    OnBehaviorAwake()

    Declaration
    public void OnBehaviorAwake()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorAwake()

    OnBehaviorDestroy()

    Declaration
    public void OnBehaviorDestroy()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDestroy()

    OnBehaviorDisable()

    Declaration
    public void OnBehaviorDisable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDisable()

    OnBehaviorEnable()

    Declaration
    public void OnBehaviorEnable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorEnable()

    OnBehaviorStart()

    Declaration
    public void OnBehaviorStart()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorStart()

    OnBehaviorUpdate()

    Declaration
    public void OnBehaviorUpdate()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorUpdate()

    SetDivergenceRecoverySpeed(Single)

    Set the value that scales the rate at which the gaze velocity will return to the stable threshold (below the gaze divergence threshold) A value of 1 will allow the gaze velocity to return to the stable threshold value at its' normal rate A value less than 1 will increase the rate at which the gaze velocity returns to the stable gaze threshold value (slower) A value greater than 1 will increase the rate at which the gaze velocity returns to the stable gaze threshold value (faster)

    Declaration
    public void SetDivergenceRecoverySpeed(float rateAtWhichGazeVelocityReturnsToStableThreshold)
    Parameters
    Type Name Description
    Single rateAtWhichGazeVelocityReturnsToStableThreshold

    The rate at which gaze velocity returns to stable threshold

    Implements
    IProvidesDetectGazeDivergence.SetDivergenceRecoverySpeed(Single)

    Shutdown()

    Declaration
    public void Shutdown()
    Implements
    IDelayedInitializationModule.Shutdown()

    UnloadModule()

    Declaration
    public void UnloadModule()
    Implements
    IModule.UnloadModule()

    UnloadProvider()

    Declaration
    public void UnloadProvider()
    Implements
    IFunctionalityProvider.UnloadProvider()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023