Version: 2022.2

EditorUtility.ClearDefaultParentObject

切换到手册
public static void ClearDefaultParentObject (SceneManagement.Scene scene);
public static void ClearDefaultParentObject ();

参数

scene Specify a Scene to clear the default parent object for a specific Scene. If a Scene is not specified, this method clears the default parent object for the active Scene.

描述

Clears the default parent GameObject from either a specific Scene or the active Scene.