기술 자료

Unity Engine

Unity Engine

HideInHierarchy

The object will not appear in the hierarchy.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
HideInHierarchy = 1

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Creates 5 planes and hides them from the Hierarchy in the Editor. void Start() { for (int i = 0; i < 5; i++) { GameObject createdGO = GameObject.CreatePrimitive(PrimitiveType.Plane); createdGO.hideFlags = HideFlags.HideInHierarchy; } }}