Versions with this page:
Versions without this page:
Creates an empty mesh.
// Create a new mesh and assign it to the mesh filter using UnityEngine;public class ExampleClass : MonoBehaviour { void Start() { Mesh mesh = new Mesh(); GetComponent<MeshFilter>().mesh = mesh; } }