LocalizedString args added in code are sometimes serialized to their ScriptableObject reference
Unity: Serialization
Feature Request
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
This would be to change the behaviour of entering/exiting playmode to backup/restore asset which would come with significant time.
How to reproduce:
1. Open the user-attached project
2. Activate PlasticSCM Version Control and Check-in
3. Open Assets/Scenes/SampleScene.unity
4. Select Assets/ScriptableObjects/SpellModels/Fireball.asset
5. In the Inspector expand the Description field (Note the Local Variables table)
6. Enter Play Mode
7. In the Game View select from the Dropdown tab the “Fireball” selection
8. Stop Play Mode
9. Save the Project ( or make any change and save)
10. Check-in Changes
Expected result: The Local Variables field does not get serialized and saved in Version Control
Actual result: After leaving Play Mode, the Local Variables field gets serialized and if any change is made to the file, the field gets saved in Version Control