SetDefaultParentObject(GameObject)
Sets the default parent object for the active Scene.
読み終わるまでの所要時間 1 分最終更新 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.