기술 자료

Unity Engine

Unity Engine

SetDefaultParentObject(GameObject)

Sets the default parent object for the active Scene.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void SetDefaultParentObject(GameObject defaultParentObject)

Parameters

defaultParentObject

The GameObject to set as the default parent object.

Remarks

When a GameObject is created or dragged into the Scene, the GameObject is automatically parented by the default parent. The default parent object can be set per scene.