Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

PrimitiveType.Plane

Description

A plane primitive.

Additional resources: GameObject.CreatePrimitive.

using UnityEngine;
using System.Collections;

// Creates a plane primitive

public class ExampleClass : MonoBehaviour { void Start() { GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane); } }