Struct MeshResult
This struct holds the result of a glTF to Unity mesh conversion. During an import, glTF meshes (composed of primitives) will be converted to Unity Meshes (with sub-meshes). glTF meshes and Unity Meshes do not necessarily relate one-to-one. One glTF mesh (with multiple primitives) might be converted to multiple Unity Meshes (e.g. because of incompatible vertex buffer structure).
Inherited Members
Namespace: GLTFast
Assembly: solution.dll
Syntax
public readonly struct MeshResult
Constructors
MeshResult(int, int[], int[], Mesh)
MeshResult Constructor
Declaration
public MeshResult(int meshIndex, int[] primitiveIndices, int[] materialIndices, Mesh mesh)
Parameters
Type | Name | Description |
---|---|---|
int | meshIndex | Original glTF mesh index |
int[] | primitiveIndices | Original glTF mesh primitive index per sub-mesh |
int[] | materialIndices | glTF material index per sub-mesh |
Mesh | mesh | Converted Unity Mesh |
Fields
materialIndices
glTF material index per sub-mesh
Declaration
public readonly int[] materialIndices
Field Value
Type | Description |
---|---|
int[] |
mesh
Converted Unity Mesh
Declaration
public readonly Mesh mesh
Field Value
Type | Description |
---|---|
Mesh |
meshIndex
Original glTF mesh index
Declaration
public readonly int meshIndex
Field Value
Type | Description |
---|---|
int |
primitiveIndices
Original glTF mesh primitive index per sub-mesh
Declaration
public readonly int[] primitiveIndices
Field Value
Type | Description |
---|---|
int[] |