Method Compile
Compile(ProBuilderMesh, Mesh, MeshTopology)
Compiles a Mesh from a ProBuilderMesh.
Declaration
public static void Compile(ProBuilderMesh probuilderMesh, Mesh targetMesh, MeshTopology preferredTopology = MeshTopology.Triangles)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | probuilderMesh | The source mesh. |
Mesh | targetMesh | The destination |
MeshTopology | preferredTopology | True to try to create topology that matches the requested format. If the method can't create topology using the requested format, it uses triangles where necessary. |