Struct BlendShapeDescription
BlendShape data for a mesh.
Implements
Inherited Members
Namespace: Unity.Importer.USD
Assembly: Unity.Importer.USD.dll
Syntax
public struct BlendShapeDescription : IDisposable
Remarks
We will write each blendshape frame consecutively in our array. considering a blendshape : frame_0 with offsets off_00, off_01, off_02 AND frame_1 with offsets off_10, off_11, off_12 the resulting offsets array will be : off_00, off_01, off_02, off_10, off_11, off_12
Note : offsets arrays need to have a size of mesh.vertexCount.
Constructors
BlendShapeDescription(UsdSkelBlendShape, int)
BlendShape data for a mesh.
Declaration
public BlendShapeDescription(UsdSkelBlendShape blendShapeIn, int vertexCount)
Parameters
Type | Name | Description |
---|---|---|
Usd |
blendShapeIn | The <pxr.UsdSkelBlendShape> used to initialize this description. |
int | vertexCount | The vertex count of the linked mesh |
Fields
DeltaNormals
Normal offsets for each vertex.
Declaration
public NativeArray<float3> DeltaNormals
Field Value
Type | Description |
---|---|
Native |
DeltaVertices
Position offsets for each vertex.
Declaration
public NativeArray<float3> DeltaVertices
Field Value
Type | Description |
---|---|
Native |
FrameCount
Number of frames in this blend shape.
Declaration
public int FrameCount
Field Value
Type | Description |
---|---|
int |
Name
Name of the blend shape.
Declaration
public NativeArray<char> Name
Field Value
Type | Description |
---|---|
Native |
Weights
Weight of each frame of the blend shape.
Declaration
public NativeArray<float> Weights
Field Value
Type | Description |
---|---|
Native |
Methods
Dispose()
See documentation for <IDisposable.Dispose> for more details
Declaration
public void Dispose()