docs.unity3d.com
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.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public struct PokeStateData : IEquatable<PokeStateData>

    Properties

    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.

    Declaration
    public Vector3 axisAlignedPokeInteractionPoint { readonly get; set; }
    Property Value
    Type Description
    Vector3

    axisNormal

    The interaction axis used for poking.

    Declaration
    public Vector3 axisNormal { readonly get; set; }
    Property Value
    Type Description
    Vector3

    interactionStrength

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

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

    meetsRequirements

    Signifies whether the current event meets requirements for poking.

    Declaration
    public bool meetsRequirements { readonly get; set; }
    Property Value
    Type Description
    bool

    pokeInteractionPoint

    The Vector3 point where the current interaction is being evaluated.

    Declaration
    public Vector3 pokeInteractionPoint { readonly get; set; }
    Property Value
    Type Description
    Vector3

    target

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

    Declaration
    public Transform target { readonly get; set; }
    Property Value
    Type Description
    Transform

    Methods

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    Equals(PokeStateData)

    Declaration
    public bool Equals(PokeStateData other)
    Parameters
    Type Name Description
    PokeStateData other
    Returns
    Type Description
    bool

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    Implements

    IEquatable<T>
    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)