Constructor MeshImporter
MeshImporter(GameObject)
Creates a new ProBuilderMesh importer instance from the specified GameObject.
Declaration
public MeshImporter(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | The GameObject to write vertex data to. |
MeshImporter(Mesh, Material[], ProBuilderMesh)
Creates a new ProBuilderMesh importer instance from the specified mesh and materials.
Declaration
public MeshImporter(Mesh sourceMesh, Material[] sourceMaterials, ProBuilderMesh destination)
Parameters
Type | Name | Description |
---|---|---|
Mesh | sourceMesh | The Mesh asset to import vertex data from. |
Material[] | sourceMaterials | The materials to assign to the ProBuilderMesh renderer. |
ProBuilderMesh | destination | The ProBuilderMesh asset to write vertex data to. |