文档

Unity Engine

Unity Engine

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; }}