Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NotEditable

The object is not editable in the Inspector.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
NotEditable = 8

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Create a plane and dont let it be modificable in the Inspector // nor in the Sceneview. void Start() { GameObject createdGO = GameObject.CreatePrimitive(PrimitiveType.Plane); createdGO.hideFlags = HideFlags.NotEditable; }}