-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
AntiScriptableObjectArchitecture/README.md
Lines 27 to 28 in 11f7e65
| ## Reason 7. You cannot turn off Domain/Scene Reload | |
| According to [Unity's Document](https://docs.unity3d.com/Manual/SceneReloading.html), when you turn off Domain and Scene reloading for better performance of Play Mode, your Scriptable Object will **keep the value**. That's the price of messing asset with mutable values. Who on earth will know what will happen when your core logic does not reset it's value? You may never be able to turn them off. |
This has nothing to do with domain reload. In the editor ScriptableObjects always kept their values - not so in builds.
IIRC on UnityAtoms we addressed the issue and are resetting the ScriptableObjects accordingly event if domain reload is disabled. Not sure if we handled every edge case, but it surely is possible to do so!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels