Search Issue Tracker
By Design
Votes
0
Found in
5.5.1f1
Issue ID
884504
Regression
No
GameObjects are not saved when instantiated from editor and there is no additional changes
Reproduction steps:
1. Open project attached (gameobjectNotSaved.zip)
2. Open scene "testScene"
3. Click on Window -> TestWindow
4. Click on the button "Create Object"
5. Close the window
6. Ctrl + S to save any changes
7. Close unity
8. Re open the project
Expected result: objects will be saved.
Actual result: objects are not saved.
Workaround: move any object before save.
Reproduced on: 5.3.7p3, 5.4.4p4, 5.5.2f1, 5.6.0b10
Comments (1)
Add comment
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
Peter77
Feb 25, 2017 09:29
I'd assume you have to call EditorSceneManager.MarkSceneDirty after creating all those objects via code.
https://docs.unity3d.com/ScriptReference/SceneManagement.EditorSceneManager.MarkSceneDirty.html