docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct PokeStateData

    Holds information used for poke interaction affordances.

    Implements
    IEquatable<PokeStateData>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
    Assembly: solution.dll
    Syntax
    public struct PokeStateData : IEquatable<PokeStateData>

    Properties

    Name Description
    axisAlignedPokeInteractionPoint

    The Vector3 point along the axis of interaction based on the pokeInteractionPoint, current poke depth, normal vector to the axis of interaction, and the offset based on the interactionDepthOffset.

    axisNormal

    The interaction axis used for poking.

    interactionStrength

    The amount the poke interaction is currently selecting the interactable between 0 and 1.

    meetsRequirements

    Signifies whether the current event meets requirements for poking.

    pokeInteractionPoint

    The Vector3 point where the current interaction is being evaluated.

    target

    This is the current target hit by the XRPokeInteractor that this state data is relevant for.

    Methods

    Name Description
    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Equals(PokeStateData)

    Indicates whether the current object is equal to another object of the same type.

    GetHashCode()

    Returns the hash code for this instance.

    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)