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
Name | Description |
---|---|
MeshResult(int, int[], int[], Mesh) | MeshResult Constructor |
Fields
Name | Description |
---|---|
materialIndices | glTF material index per sub-mesh |
mesh | Converted Unity Mesh |
meshIndex | Original glTF mesh index |
primitiveIndices | Original glTF mesh primitive index per sub-mesh |