HideFlags
.NotEditable
Manual
Reference
Scripting
Scripting
>
Enumerations
>
HideFlags
HideFlags
.NotEditable
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
HideFlags
All Members
Values
DontSave
HideAndDontSave
HideInHierarchy
HideInInspector
NotEditable
HideFlags.NotEditable
Description
The object is not be editable in the inspector
JavaScripts
JavaScript
C#
Boo
// 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
;
}
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Start
() {
GameObject
createdGO =
GameObject.CreatePrimitive
(
PrimitiveType.Plane
);
createdGO.hideFlags =
HideFlags.NotEditable
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Start
():
createdGO as
GameObject
=
GameObject.CreatePrimitive
(
PrimitiveType.Plane
)
createdGO.hideFlags =
HideFlags.NotEditable