Struct MeshDescription
Data describing a mesh in Unity.
Implements
Inherited Members
Namespace: Unity.Importer.USD
Assembly: Unity.Importer.USD.dll
Syntax
public struct MeshDescription : IDisposable
Fields
BlendShapeDescriptions
Blend shape data for this mesh.
Declaration
[NativeDisableContainerSafetyRestriction]
public NativeArray<BlendShapeDescription> BlendShapeDescriptions
Field Value
Type | Description |
---|---|
Native |
BoneInfluenceCount
Amount of bone influencing a vertex for a skinned mesh.
Declaration
public int BoneInfluenceCount
Field Value
Type | Description |
---|---|
int |
Bounds
Bounds of the mesh.
Declaration
public Bounds Bounds
Field Value
Type | Description |
---|---|
Bounds |
Indices
Mesh indices buffer.
Declaration
[NativeDisableContainerSafetyRestriction]
public NativeArray<int> Indices
Field Value
Type | Description |
---|---|
Native |
JointsBindingMatrices
Joint binding matrix for skinned mesh.
Declaration
[NativeDisableParallelForRestriction]
public NativeArray<float4x4> JointsBindingMatrices
Field Value
Type | Description |
---|---|
Native |
SkinningData
Skinned mesh data buffer. Used to write the skinned mesh info in a Unity mesh.
Declaration
[NativeDisableContainerSafetyRestriction]
public NativeArray<byte> SkinningData
Field Value
Type | Description |
---|---|
Native |
SubMeshDescriptors
Sub
Declaration
[NativeDisableContainerSafetyRestriction]
public NativeArray<SubMeshDescriptor> SubMeshDescriptors
Field Value
Type | Description |
---|---|
Native |
VertexAttributeDescriptors
Describe the data provided for each vertex (position, uv, skinned mesh weights, etc...).
Declaration
[NativeDisableContainerSafetyRestriction]
public NativeArray<VertexAttributeDescriptor> VertexAttributeDescriptors
Field Value
Type | Description |
---|---|
Native |
VertexColorAndUVSize
Memory size of one of this mesh vertex's color and texture coordinates
Declaration
public int VertexColorAndUVSize
Field Value
Type | Description |
---|---|
int |
VertexCount
Mesh vertex count.
Declaration
public NativeArray<int> VertexCount
Field Value
Type | Description |
---|---|
Native |
Remarks
Due to job limitation, this value is stored in the first entry of this NativeArray
VertexData
Mesh data buffer, used to write the Unity mesh.
Declaration
[NativeDisableContainerSafetyRestriction]
public NativeArray<byte> VertexData
Field Value
Type | Description |
---|---|
Native |
VertexPositionAndNormalSize
Memory size of one of this mesh vertex's position and normal
Declaration
public int VertexPositionAndNormalSize
Field Value
Type | Description |
---|---|
int |
Properties
VertexSize
Memory size of one of this mesh vertex.
Declaration
public int VertexSize { get; }
Property Value
Type | Description |
---|---|
int |
skinningDataStream
Stream to use for skinning data
Declaration
public int skinningDataStream { get; }
Property Value
Type | Description |
---|---|
int |
Methods
Dispose()
See documentation for <IDisposable.Dispose> for more details
Declaration
public void Dispose()