Version: 2021.1
언어: 한국어

HideFlags.HideInHierarchy

매뉴얼로 전환

설명

The object will not appear in the hierarchy.

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