How to reproduce:
1. Open the attached “IN-145413_uitk_sg” project
2. Navigate to Window → Asset Management → Addressables → Groups
3. In the Addressables Groups window, click the “Play Mode Script” dropdown and select “Use Existing Build”
4. Click the “Build” dropdown and select “New Build” → “Default Build Script” (if “Addressables Build Report” pop-up appears, click yes)
5. When the build finishes, navigate to Assets → Scenes and open the “Bootstrap” Scene
6. Enter Play mode
7. Observe the Game view
Actual result: When the “ArenaUI” Scene loads the second and third times, it shows a white square on the left and a blue one on the right
Expected result: Every time the “ArenaUI” Scene loads, it always displays two blue squares
Reproducible with: 6000.3.18f1, 6000.4.0a3, 6000.4.12f1, 6000.5.0f1, 6000.6.0a7
Could not test with: 6000.0.0f0, 6000.0.76f1, 6000.3.0a1 (due to “'IResolvedStyle' does not contain a definition for 'unityMaterial'” error being thrown), 6000.3.0a6, 6000.4.0a2 (Editor crashes on entering Play mode)
Reproducible on: macOS (M4) (26.5.1)
Not reproducible on: No other environments tested
Notes:
- The right square remains blue because its bundle does not get unloaded between runs of the script; it is kept alive due to a consistent reference to its handle
- Testing on 6000.5.0f1 and 6000.6.0a7 required minor code changes due to GetInstanceID becoming deprecated