Model.FromMesh

static Model FromMesh(Mesh mesh, Material material)

   
Mesh mesh Any Mesh asset.
Material material Any Material asset.
RETURNS: Model A Model composed of a single mesh and Material.

Creates a single mesh subset Model using the indicated Mesh and Material! An id will be automatically generated for this asset.

static Model FromMesh(string id, Mesh mesh, Material 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.

Creates a single mesh subset Model using the indicated Mesh and Material!