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
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
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.