Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
0
Found in
2017.4
2018.4
2019.2
2019.3
2020.1
2020.1.0a1
Issue ID
1179267
Regression
No
Console window is spammed with warning messages when UI Slider's Min Value is set to greater value than Max Value
How to reproduce:
1. Open the attached 'BugReport.zip' project using the EnvIronman VM (more information in Edit)
2. Load the 'SampleScene' scene
3. In the Hierarchy window select 'Canvas' > 'Slider'
4. In the Inspector window change 'Min Value' to '2'
5. Observe the Console window
Expected result: no warning messages are printed in the Console window
Actual result: warning messages are spammed in the Console window
Reproducible with: 2017.4.32f1, 2018.4.7f1, 2019.2.3f1, 2019.3.0b1, 2020.1.0a1
Warning message:
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Comments (1)
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
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
makaka-org
Nov 11, 2019 14:56
I've checked with Unity 2019.3b10.
Warning has gone, but as you wrote in change log of b10
(UI: Values of sliders in the Inspector are now validated on Update rather than on Validate to avoid calling the Clamp function, which triggered a RectTransformChange)
Clamp function is still here and executes unexpectedly.
Clamp function here needs to be fixed.
Tips: Check with different values of slider min & max & value with code.
Use 2 different range to set in code (-8:8) and (-2:2). Switch between them and set different values with code. You will get wrong work of clamp function.