HideFlags.NotEditable Manual     Reference     Scripting  
Scripting > Enumerations > HideFlags
HideFlags.NotEditable

HideFlags.NotEditable

Description

The object is not be editable in the inspector

JavaScript
// Create a plane and dont let it be modificable in the Inspector
// nor in the Sceneview.

function Start() {
var createdGO : GameObject = GameObject.CreatePrimitive(PrimitiveType.Plane);
createdGO.hideFlags = HideFlags.NotEditable;
}