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)
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
- NullReferenceException when setting 'isTextObjectScaleStatic' to false on a disabled TextMeshPro GameObject
- Shader Stripping Custom Options disappear when exiting Play mode without reloading Domain
- Decals do not get projected when 'Rendering Layer Mask' on a GameObject is 23rd Layer or above due to encoding/decoding issues
- Deriving from SearchContextAttribute doesn't always work
- Scripting API documentation is missing for macOS editor extensions
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.