docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PokeThresholdData

    The settings used to fine tune the vector and offsets which dictate how the poke interaction will be evaluated.

    Inheritance
    object
    PokeThresholdData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [Serializable]
    public class PokeThresholdData

    Properties

    enablePokeAngleThreshold

    When enabled, the filter will check that a poke action is started and moves within the poke angle threshold along the poke direction axis.

    Declaration
    public bool enablePokeAngleThreshold { get; set; }
    Property Value
    Type Description
    bool
    See Also
    pokeAngleThreshold

    interactionDepthOffset

    Distance along the poke interactable interaction axis that allows for a poke to be triggered sooner/with less precision.

    Declaration
    public float interactionDepthOffset { get; set; }
    Property Value
    Type Description
    float

    pokeAngleThreshold

    The maximum allowed angle (in degrees) from the poke direction axis that will trigger a select interaction. Only used when enablePokeAngleThreshold is enabled.

    Declaration
    public float pokeAngleThreshold { get; set; }
    Property Value
    Type Description
    float
    Remarks

    The angle must be greater than or equal to 0 degrees and less than 90 degrees.

    See Also
    enablePokeAngleThreshold

    pokeDirection

    The axis along which the poke interaction will be constrained.

    Declaration
    public PokeAxis pokeDirection { get; set; }
    Property Value
    Type Description
    PokeAxis
    See Also
    PokeAxis

    Methods

    GetSelectEntranceVectorDotThreshold()

    This returns the dot-product threshold value based on the pokeAngleThreshold configured. Only used when enablePokeAngleThreshold is enabled.

    Declaration
    public float GetSelectEntranceVectorDotThreshold()
    Returns
    Type Description
    float

    A float value representing a dot-product threshold value.

    See Also
    pokeAngleThreshold
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)