docs.unity.cn
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.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class PokeThresholdData

    Properties

    Name Description
    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.

    interactionDepthOffset

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

    pokeAngleThreshold

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

    pokeDirection

    The axis along which the poke interaction will be constrained.

    Methods

    Name Description
    GetSelectEntranceVectorDotThreshold()

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

    In This Article
    Back to top
    Copyright © 2023 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)