RevertAddedGameObject(GameObject, InteractionMode)
Removes this added GameObject from a Prefab instance.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static void RevertAddedGameObject(GameObject gameObject, InteractionMode action)
Parameters
The added GameObject on the Prefab instance to revert.
The interaction mode for this action.
Remarks
After the revert action, the GameObject and its children no longer exist.
This method also works if the added child GameObject is a Prefab instance.