Version: 2017.3

MeshConstructor

Cambiar al Manual
public Mesh ();

Descripción

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