Struct UsdSkinnedMeshData
Represents a USD skeleton data.
Used to properly set Weights on Mesh> and Skinned
Inherited Members
Namespace: Unity.Importer.USD
Assembly: Unity.Importer.USD.dll
Syntax
public struct UsdSkinnedMeshData
Fields
isWeightInterpolationConstant
Is the weight interpolation constant.
Declaration
public bool isWeightInterpolationConstant
Field Value
Type | Description |
---|---|
bool |
jointIndices
This skeleton joint indices.
Declaration
public int[] jointIndices
Field Value
Type | Description |
---|---|
int[] |
jointsBindingMatrices
The joint binding matrices for this skeleton.
Declaration
public float4x4[] jointsBindingMatrices
Field Value
Type | Description |
---|---|
float4x4[] |
meshToSkeletonJointIndices
A USD mesh may possess a joint remapping that has to be used to make them correspond to the skeleton joint order.
Declaration
public Dictionary<int, int> meshToSkeletonJointIndices
Field Value
Type | Description |
---|---|
Dictionary<int, int> |
Remarks
- key is the index of the joint as described by the mesh in 'uniform token[] skel:joints'
- value is the corresponding index in the skeleton as described by its 'uniform token[] joints'
meshToSkeletonJointIndices can be null if no mapping exist or it must at least provide a mapping for each joint used by this mesh.
skeletonRootPath
The PrimPath of the skeleton root.
Declaration
public string skeletonRootPath
Field Value
Type | Description |
---|---|
string |
weights
This skeleton joint weights.
Declaration
public float[] weights
Field Value
Type | Description |
---|---|
float[] |
weightsElementSize
The array size of the original joint weight array in USD.
Declaration
public int weightsElementSize
Field Value
Type | Description |
---|---|
int |