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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Add comment