Mesh()
Creates an empty Mesh.
읽는 시간 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; }}