Class SyncSubMesh
This class specifies information about a single submesh, that can be included in a SyncMesh.
Inherited Members
Namespace: Unity.Reflect.Model
Syntax
public class SyncSubMesh
Constructors
SyncSubMesh()
Creates an empty SyncSubMesh.
Declaration
public SyncSubMesh()
SyncSubMesh(IEnumerable<Int32>)
Creates a SyncSubMesh.
Declaration
public SyncSubMesh(IEnumerable<int> triangles)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Int32> | triangles | The triangles of the submesh |
Fields
Triangles
The triangles in the submesh. A triangle should be a sequence of 3 integers, each pointing to a correct vertex ID of the parent SyncMesh. Therefore, the list count should be a multiple of 3.
Declaration
public List<int> Triangles
Field Value
Type | Description |
---|---|
List<Int32> |