Search Issue Tracker
Fixed in 2017.3.X
Votes
0
Found in
2017.2.0b4
Issue ID
936282
Regression
No
[UIElements] Experimental.UIElements styles on hover event are reapplied even when no change in style is made
Steps to reproduce:
1. Open attached project
2. Go to "UIElementsExamples"->"05_Controls"
3. Open Profiler window
4. In Profiler press "Profile Editor" and "Deep Profile" and select CPU section
5. Now hover on one of the "Test" labels(text part) in "Example 5" window
-StyleContext.ApplyStyles() is getting called even though no styles were changed (check in profiler)
Problem: StyleContext.ApplyStyles() is being called during most GUIUtility.ProcessEvent(), and takes a long time, causing the editor to slow down when many UIElements are being repainted.
Expected result: Style does not change when just hovering over an element, so it should not have to reapply them, taking up a lot of time
Note: Couldn't test on 2017.1 or lower because UIElements namespace doesn't exist until 2017.2
Reproduced on: 2017.2.0b4, 2017.3.0a1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
Add comment