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.
Implements
Inherited Members
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
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()