Search Issue Tracker

Won't Fix

Votes

2

Found in

2017.3.0f3

Issue ID

989299

Regression

No

Making changes to a scriptable object, all scenes loaded in the Hierarchy becomes dirtied

Scripting

-

How to reproduce:
1. Download attached project file
2. Load both Scene1 & Scene2 into the Hierarchy
3. In Scene1, select GameObject and create the ScriptableObject using the 'AssetHolder' script in Inspector Window
4. Double click on the newly created ScriptableObject to view its inspector
5. Change the int variable (notice all scenes are dirtied)

Actual result: When making changes to a scriptable object (change variable data) all scenes loaded in the Hierarchy becomes dirtied (star at the end of scene name appear on all opened scenes)

Reproduced with: 5.6.5p1, 2017.1.3f1, 2017.2.1p2, 2013.0p3, 2018.1.0b4

  1. Resolution Note:

    This is a safety mechanism. We don't know which scene these objects belongs to so in order to make sure your scenes are saved correctly we have to mark them all dirty.

Comments (1)

  1. andy_unity945

    Aug 20, 2021 11:39

    This is quite an old issue, but it still seems to have this odd "dirty all scenes" functionality in latest 2020 so posting a comment here. In the current version of Unity API (2020+), I don't understand the resolution note for why you won't fix this.

    SerializedObject.targetObject(s) gives you a list of the inspected objects & gameObject.scene provides a reference to the scene they're in.

    Only dirtying the scenes flagged by these target objects seems like more helpful functionality than dirtying all additively loaded scenes.

    Would it be possible to re-open the issue and take another look in the latest version of Unity?

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.