Search Issue Tracker
By Design
Votes
1
Found in
2022.3.15f1
2023.2.4f1
2023.3.0a18
Issue ID
UUM-58399
Regression
Yes
GUIUtility.hotControl controlID value does not change when clicking with the Left Mouse Button
Reproduction steps:
1. Open the attached project "HotControls.zip"
2. Open the "TestHotControl" Scene
3. In the Hierarchy, have the "HotControls" GameObject selected
4. In the Scene view, click anywhere with the Left Mouse Button
5. Observe the hotControl values in the Console
Expected results: “mouseDown”, “Layout” and “repaint” hotControl values change on click
Actual results: “mouseDown”, “Layout” and “repaint” hotControl values remain 0
Reproducible with: 2022.3.14f1, 2022.3.15f1, 2023.3.0a18
Not reproducible with: 2021.3.33f1, 2022.3.13f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
-
ThomasLopez
Dec 15, 2023 15:57
Hey PMURPH03!
The change for the controlId will only impact Unity 2022.3 LTS, 2023.2 and 2023.3. (and all following versions)
No other versions will be impacted.However I do not see a case were you would need to rely on that change, this should not break workflows or tools. If you want to discuss more about your topic, feel free to reach out to us through the Unity forums, and create a post over there and we will happily help you with your use case :D
https://forum.unity.com/ -
pmurph03
Dec 13, 2023 22:42
So the recommended workaround for this change is to use conditional compilation and just do UNITY_EDITOR_2022_3_14||...2022_3_15 || ...2022_3_16..... || 2022_3_XX || 2023_OR_NEWER ? As the OR_NEWER can't be used in this case.
Will these changes be backported to older LTS versions of unity? Just so I can be prepared to work around the breaking change in other versions I need to support as well.
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
- Search: Inspector section icon is less sharp/more pixelated than other editor icons
- Search description string is always truncated
- [VFX] When Grouped Nodes are converted to Subgraph Operator resulting Graph Node is not included in the Group
- Search window icons are less sharp/more pixelated than other editor icons
- The Inspector can be covered when scaling the horizontal separator bar
Resolution Note:
Happy that was helpful! Dpn't hesitate to reach out on the forums for more info!