Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.4

2018.4

2019.1

2019.1.2f1

2019.2

2019.3

Issue ID

1155500

Regression

No

Gameobjects added to a Scene via script from an xml file do not make the Scene dirty, do not persist after Scene reload

Scene Management

-

To reproduce:
1. Open the QA's attached project
2. Open the Sample Scene
3. Select any game object in the hierarchy
4. Navigate Superzaic > Build from metadata
5. Select the .xml file from the Assets folder
Lots of empty gameobjects will be added as children

Expected result: Scene becomes dirty and changes can be saved or reverted
Actual result: Scene does not become dirty, changes are reverted after a Scene reload

Reproduced with: 2017.4.29f1, 2018.4.2f1, 2019.1.6f1, 2019.2.0b5, 2019.3.0a5

  1. Resolution Note:

    In order to mark the scene dirty you need to implement undo or mark the scene dirty manually https://docs.unity3d.com/ScriptReference/SceneManagement.EditorSceneManager.MarkSceneDirty.html

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.