docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRHandMeshDataExtensions

    Contains extensions to XRHandMeshData relevant to supplying data when TryGetMeshData(out XRHandMeshDataQueryResult, ref XRHandMeshDataQueryParams) is called.

    Inheritance
    object
    XRHandMeshDataExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Hands.Meshing.ProviderImplementation
    Assembly: Unity.XR.Hands.dll
    Syntax
    public static class XRHandMeshDataExtensions

    Methods

    InvalidateRootPose(ref XRHandMeshData)

    Invalidates the root Pose on the XRHandMeshData.

    Declaration
    public static void InvalidateRootPose(this ref XRHandMeshData meshData)
    Parameters
    Type Name Description
    XRHandMeshData meshData

    Mesh data to invalidate the root pose on.

    SetIndices(ref XRHandMeshData, NativeArray<int>)

    Set the indices data on the XRHandMeshData.

    Declaration
    public static void SetIndices(this ref XRHandMeshData meshData, NativeArray<int> indices)
    Parameters
    Type Name Description
    XRHandMeshData meshData

    Mesh data to set index data on.

    NativeArray<int> indices

    Index data to set on the invoking mesh data.

    SetNormals(ref XRHandMeshData, NativeArray<Vector3>)

    Set the normals data on the XRHandMeshData.

    Declaration
    public static void SetNormals(this ref XRHandMeshData meshData, NativeArray<Vector3> normals)
    Parameters
    Type Name Description
    XRHandMeshData meshData

    Mesh data to set normal data on.

    NativeArray<Vector3> normals

    Index data to set on the invoking mesh data.

    SetPositions(ref XRHandMeshData, NativeArray<Vector3>)

    Set the positions data on the XRHandMeshData.

    Declaration
    public static void SetPositions(this ref XRHandMeshData meshData, NativeArray<Vector3> positions)
    Parameters
    Type Name Description
    XRHandMeshData meshData

    Mesh data to set position data on.

    NativeArray<Vector3> positions

    Index data to set on the invoking mesh data.

    SetRootPose(ref XRHandMeshData, Pose)

    Set the root Pose on the XRHandMeshData.

    Declaration
    public static void SetRootPose(this ref XRHandMeshData meshData, Pose rootPose)
    Parameters
    Type Name Description
    XRHandMeshData meshData

    Mesh data to set index data on.

    Pose rootPose

    Root pose to set on the invoking mesh data.

    SetUVs(ref XRHandMeshData, NativeArray<Vector2>)

    Set the uvs data on the XRHandMeshData.

    Declaration
    public static void SetUVs(this ref XRHandMeshData meshData, NativeArray<Vector2> uvs)
    Parameters
    Type Name Description
    XRHandMeshData meshData

    Mesh data to set texture coordinate data on.

    NativeArray<Vector2> uvs

    Texture coordinate data to set on the invoking mesh data.

    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)