Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ClearDefaultParentObject

Clears the default parent GameObject from either a specific Scene or the active Scene.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

ClearDefaultParentObject(Scene)

Clears the default parent GameObject from either a specific Scene or the active Scene.
public static void ClearDefaultParentObject(Scene scene)

Parameters

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.

Remarks

ClearDefaultParentObject()

Clears the default parent GameObject from either a specific Scene or the active Scene.
public static void ClearDefaultParentObject()

Remarks