Content-Length: 18379 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/HideFlags.NotEditable.html
The object is not editable in the Inspector.
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; } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/HideFlags.NotEditable.html
Alternative Proxies: