Mesh()
Creates an empty Mesh.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public Mesh()
Examples
// Create a new Mesh and assign it to the Mesh filterusing UnityEngine;public class ExampleClass : MonoBehaviour{ void Start() { Mesh mesh = new Mesh(); GetComponent<MeshFilter>().mesh = mesh; }}