RemovedGameObject
Class with information about a GameObject that has been removed from a Prefab instance.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEditor.SceneManagement
- Assembly: UnityEditor
- Inherits from: PrefabOverride
public class RemovedGameObject : PrefabOverride
Remarks
Additional Resources: PrefabUtility.ApplyRemovedGameObject, PrefabUtility.RevertRemovedGameObject, PrefabUtility.GetRemovedGameObjects.
Properties
Property | Description |
|---|---|
| assetGameObject | The GameObject in the Prefab Asset that has been removed in the Prefab instance. |
| parentOfRemovedGameObjectInInstance | The parent of the removed GameObject in the instance. |
Methods
Method | Description |
|---|---|
| Apply | See: PrefabOverride.Apply(). |
| GetAssetObject | See PrefabOverride.GetAssetObject(). |
| Revert | Restore the removed GameObject to the Prefab instance. See PrefabOverride.Revert(). |