Unity Issue Tracker - Serializable integer variable changes are reset when entering the Play Mode
Closed
UUM-56534
Serializable integer variable changes are reset when entering the Play Mode
Unity: UI Toolkit Controls
Won't Fix
2023.2.X
2023.2.0a18 onwards
Closing as Won't fix due to 2023.2 reaching it's EOL.
Reproduction steps:
1. Open the attached “ReproProject” project
2. Open the "Assets/Scenes/WorldScene.unity" scene
3. Select the “WorldManager” GameObject in the Hierarchy window
4. In the Inspector window change the Container Size value to a 16 in the World Manager (Script) component
5. Enter and then Exit the Play Mode
6. In the Inspector window change the Container Size value to a 5 in the World Manager (Script) component
7. Enter the Play Mode
8. Observe the Container Size value
Expected results: Container Size value stays at 5 when entering the Play Mode and saves the altered value
Actual results: Container Size value resets to 16 when entering the Play Mode