https://forum.unity.com/threads/whats-the-difference-between-event-rawtype-and-event-type.172696/
按照這篇文字的說法.
Event.type是可讀和可寫的.
而
Event.rawtype是只讀.
Q:?
What's the difference between Event.rawType and Event.type?
A:?
type have both setters (get,set) while rawtype have only get. Both are defined as EventType
public enum EventType
? ? {
? ? ? ? mouseDown = 0,
? ? ? ? MouseDown = 0,
? ? ? ? MouseUp = 1,
? ? ? ? mouseUp = 1,
? ? ? ? MouseMove = 2,
? ? ? ? mouseMove = 2,
? ? ? ? mouseDrag = 3,
? ? ? ? MouseDrag = 3,
? ? ? ? KeyDown = 4,
? ? ? ? keyDown = 4,
? ? ? ? KeyUp = 5,
? ? ? ? keyUp = 5,
? ? ? ? scrollWheel = 6,
? ? ? ? ScrollWheel = 6,
? ? ? ? repaint = 7,
? ? ? ? Repaint = 7,
? ? ? ? layout = 8,
? ? ? ? Layout = 8,
? ? ? ? DragUpdated = 9,
? ? ? ? dragUpdated = 9,
? ? ? ? dragPerform = 10,
? ? ? ? DragPerform = 10,
? ? ? ? ignore = 11,
? ? ? ? Ignore = 11,
? ? ? ? used = 12,
? ? ? ? Used = 12,
? ? ? ? ValidateCommand = 13,
? ? ? ? ExecuteCommand = 14,
? ? ? ? DragExited = 15,
? ? ? ? ContextClick = 16,
? ? }