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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.