Search Issue Tracker
By Design
Votes
0
Found in
2017.1.2f1
Issue ID
980661
Regression
No
In CustomEditor changes to a Prefab's instance, done after Reverting, are ignored, if also a component is added to the Prefab
To reproduce:
1. Open "start" scene in the attached project.
2. Open a window: Problem -> RevertPrefab.
3. Drag "obj" from hierarchy to the obj field, in RevertPrefab window.
4. Press "revert" in RevertPrefab window.
Expected result: obj is reverted to it's prefab, but Scale is not changed.
Actual result: Scale is changed to be the same as prefab's parent.
Reproducible with: 5.6.0f1, 2017.1.2p2, 2017.2.1p1, 2017.3.0f3, 2018.1.0b1
Notes:
When "revert" is pressed, prefabs instance's position, rotation and scale is saved.
A new component is added to the Prefab parent.
Instance of a prefab is reverted.
Previously saved position, rotation and scale is set back to the Instance of a prefab.
It all works fine, only if new component is not added in the same OnGUI update.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Add comment