Search Issue Tracker
Duplicate
Votes
7
Found in
2019.3
2019.3.0f4
2020.1
Issue ID
1210196
Regression
No
Toggle Component's OnValueChanged Events are not called when "Reload Domain" and "Reload Scene" options are disabled
How to reproduce:
1. Open the attached project's Scene labeled "Repro"
2. Enter the Play Mode
3. Click the "Toggle" Button a couple of times
4. Inspect the Console Window
Expected result: Toggle Component's OnValueChanged Events are called
Actual result: Toggle Component's OnValueChanged Events are not called
Reproducible with: 2019.3.0f4, 2020.1.0a18
Couldn't test with: 2017.4.36f1, 2018.4.15f1, 2019.2.18f1 (Enter Play Mode Settings does not exist)
-
RunninglVlan
Oct 20, 2020 14:10
We're fixing this with following code in initialization for now:
```
// Toggle toggle
typeof(UnityEventBase)
.GetMethod("DirtyPersistentCalls", BindingFlags.NonPublic | BindingFlags.Instance)
?.Invoke(toggle.onValueChanged, null);
``` -
ETGgames
May 19, 2020 18:49
So...are they just not gonna fix it.
-
RunninglVlan
Jan 24, 2020 10:06
Hi, I've noticed this with Slider Component too
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
This is a duplicate of issue #1206410