docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BoneWeightData

    Draco encoded meshes might contain bone weights and indices that cannot be applied to the resulting Unity mesh right away. This class provides them and offers methods to apply them to Unity meshes.

    Inheritance
    object
    BoneWeightData
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Draco
    Assembly: solution.dll
    Syntax
    public sealed class BoneWeightData : IDisposable

    Constructors

    BoneWeightData(NativeArray<byte>, NativeArray<BoneWeight1>)

    Constructs an object with parameters identical to SetBoneWeights(NativeArray<byte>, NativeArray<BoneWeight1>).

    Declaration
    public BoneWeightData(NativeArray<byte> bonesPerVertex, NativeArray<BoneWeight1> boneWeights)
    Parameters
    Type Name Description
    NativeArray<byte> bonesPerVertex

    Bones per vertex

    NativeArray<BoneWeight1> boneWeights

    Bone weights

    See Also
    SetBoneWeights(NativeArray<byte>, NativeArray<BoneWeight1>)

    Methods

    ApplyOnMesh(Mesh)

    Applies the bone weights and indices on a Unity mesh.

    Declaration
    public void ApplyOnMesh(Mesh mesh)
    Parameters
    Type Name Description
    Mesh mesh

    The mesh to apply the data onto.

    Dispose()

    Releases allocated resources.

    Declaration
    public void Dispose()

    Implements

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