Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

PrimitiveType.Plane

Description

A plane primitive.

using UnityEngine;
using System.Collections;

// Creates a plane primitive

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

Did you find this page useful? Please give it a rating: