Version: 5.4

HideFlags.HideInHierarchy

매뉴얼로 전환

설명

The object will not appear in the hierarchy.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { int i = 0; while (i < 5) { GameObject createdGO = GameObject.CreatePrimitive(PrimitiveType.Plane); createdGO.hideFlags = HideFlags.HideInHierarchy; i++; } } }