Version: 2017.3

MeshConstructor

매뉴얼로 전환
public Mesh ();

설명

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