Model.FromMesh
static Model FromMesh(Mesh mesh, Material material)
Creates a single mesh subset Model using the indicated Mesh and Material! An id will be automatically generated for this asset.
Mesh mesh | Any Mesh asset. |
Material material | Any Material asset. |
RETURNS: Model | A Model composed of a single mesh and Material. |
static Model FromMesh(string id, Mesh mesh, Material material)
Creates a single mesh subset Model using the indicated Mesh and Material!
string id | Uses this as the id, so you can Find it later. |
Mesh mesh | Any Mesh asset. |
Material material | Any Material asset. |
RETURNS: Model | A Model composed of a single mesh and Material. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!