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][Lighting] The skybox doesn't render after changing the settings of the Material when using the URP Render Pipeline
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
Add comment