Search Issue Tracker
By Design
Votes
0
Found in
5.6.0b3
Issue ID
870692
Regression
No
Revert prefab instance from script does not work if prefab connection was broken, but from inspector it works
Steps to reproduce:
1. Open attached project.
2. Open scene: New Scene
3. Delete any child from game object "Main" in scene (this breaks the prefab connection).
4. Execute menu item "REVERT/Main"
Expected result: Main game object in scene is reverted back to its original prefab state after executing PrefabUtility.RevertPrefabInstance
Actual result: it's not.
Notes:
Pressing revert button in inspector works fine.
PrefabUtility.RevertPrefabInstance works fine if prefab connection was not broken (adding childs or changing properties)
Reproduced on: 5.6.0b3
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Add comment