Search Issue Tracker
By Design
Votes
0
Found in
5.0.0f4
Issue ID
682385
Regression
No
Event.current.rawType does not return the correct Event values
How to reproduce:
1. Open attached project
2. Open scene Scenes/ErrorExample.unity
3. Click on the Square image in the scene view a few times
- Note how rawType returns "used" instead of "mouseUp"
- Clicking on the Transform Gizmo produces the expected "mouseUp" result
- By Design:
- Event.rawType is an internal only property that we don't document (even though it's public).
- Its purpose is to return the non-filtered event type, regardless of the value of GUI.enabled. Event.type normally hide input event types and return EventType.Ignore when GUI.enabled is false when its queried.
- Event.rawType will not return the original EventType after calling Event.Use().
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [VFX] Custom HLSL with 'int' parameter, without the 'in/out/inout' access modifier is not supported
- [Windows] Lens Flare doesn't work in the Lens Flare Showroom URP Sample Scene
- Crash on ujob_execute_job while using OverlapBoxCommand when collisions are more than maxHits
- The validity of the multiple handles can behave differently based on the load/release operations order, when multiple Addressables.LoadAssetAsync and Addressables.Release are used to load and release the same Addressable Asset
- Dynamic text is rendered in the background when it is inside the <font> tag
Add comment