SetDefaultParentObject(GameObject)
Sets the default parent object for the active Scene.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static void SetDefaultParentObject(GameObject defaultParentObject)
Parameters
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.
Additional Resources: EditorUtility.ClearDefaultParentObject.