Search Issue Tracker
By Design
Votes
0
Found in
5.4.0f3
Issue ID
822619
Regression
No
Changed Prefab via editor script doesn't keep its changes after saving the scene
How to reproduce:
1.Open the attached project
2. Create a new scene
3. Open Window > Bug Editor
4. Click the Add Prefab Button in the custom editor window and notice how a prefab is instantiated via the PrefabUtility
5. Select the instantiated prefab, expand the list and click the "Create Objects" button in the Bug Editor Window
6. Save the scene (call it whatever you want)
7. Close the Bug Editor Window (important!)
8. Load the scene you just saved and look at the list on the Prefab. - It's been reset to the prefab!
Note: if one doesn't close Bug Editor window and reopens the scene, prefab keeps saved values. If one calls EditorUtility.SetDirty at the end of the script, it also keeps expected values, however, in documentation it is written that EditorUtility.SetDirty is only suitable for non-scene objects
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment