ドキュメント

Unity Engine

Unity Engine

NotEditable

The object is not editable in the Inspector.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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; }}