Mesh.Mesh Manual     Reference     Scripting  
Scripting > Runtime Classes > Mesh
Mesh.Mesh

static function Mesh () : Mesh

Description

Creates an empty mesh

// Create a new mesh and assign it to the mesh filter
function Start () {
var mesh = new Mesh ();
GetComponent(MeshFilter).mesh = mesh;
}