Méthode | Description | |
---|---|---|
AddMeshInstance ( MeshInstance instance ) : void |
Add a mesh instance to the combiner.
|
|
AddMeshInstances ( IEnumerable |
Add multiple mesh instances to the combiner, allocating space for them all up-front.
|
|
Combine ( IEnumerable |
Combine the given mesh instances into a single mesh and return it.
|
|
CreateCombinedMesh ( ) : Mesh |
Generate a single mesh from the instances that have been added to the combiner so far.
|
|
MeshCombineUtility ( bool generateStrips ) : System.Collections.Generic |
Creates a new, empty MeshCombineUtility object for combining meshes.
|
|
PrepareForAddingStrips ( int targetSubmeshIndex, IEnumerable |
Allocate space for adding a load more triangle strips to the combiner.
|
|
PrepareForAddingTriangles ( int targetSubmeshIndex, int numIndices ) : void |
Allocate space for adding a load more triangles to the triangle list.
|
|
PrepareForAddingVertices ( int numVertices ) : void |
Allocate space for adding a load more vertex data.
|
public AddMeshInstance ( MeshInstance instance ) : void | ||
instance | MeshInstance | The mesh instance to add. |
Résultat | void |
public AddMeshInstances ( IEnumerable |
||
instances | IEnumerable |
The instances to add. |
Résultat | void |
public static Combine ( IEnumerable |
||
instances | IEnumerable |
The mesh instances to combine. |
generateStrips | bool | true to use triangle strips, false to use triangle lists. |
Résultat | Mesh |
public MeshCombineUtility ( bool generateStrips ) : System.Collections.Generic | ||
generateStrips | bool | true if the meshes you're going to combine are all triangle-strip based; false if you just want to use triangle lists. |
Résultat | System.Collections.Generic |
public PrepareForAddingStrips ( int targetSubmeshIndex, IEnumerable |
||
targetSubmeshIndex | int | The index of the submesh you're going to add strips to. |
stripLengths | IEnumerable |
A sequence of strip lengths (in number-of-indices). These numbers will be used to automatically calculate how many bridging indices need to be added. |
Résultat | void |
public PrepareForAddingTriangles ( int targetSubmeshIndex, int numIndices ) : void | ||
targetSubmeshIndex | int | The index of the submesh that you're going to add triangles to. |
numIndices | int | The number of triangle indicies (number of triangles * 3) that you want to reserve space for. |
Résultat | void |
public PrepareForAddingVertices ( int numVertices ) : void | ||
numVertices | int | The number of vertices you're about to add. |
Résultat | void |