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

IMGUI

-

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().

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.