docs.unity.cn
    Show / Hide Table of Contents

    Struct PokeStateData

    Holds information used for poke interaction affordances.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
    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

    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
    Single

    meetsRequirements

    Signifies whether the current event meets requirements for poking.

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

    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
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(PokeStateData)

    Declaration
    public bool Equals(PokeStateData other)
    Parameters
    Type Name Description
    PokeStateData other
    Returns
    Type Description
    Boolean
    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Tuesday, July 18, 2023