기술 자료

Unity Engine

Unity Engine

NotEditable

The object is not editable in the Inspector.
읽는 시간 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; }}