Scripting API

Event

class in UnityEngine · UnityEngine.IMGUIModule

34 of 37 of Unity's membersUnity's documentation
In Tassix

An IMGUI event. Text input reads keyboard events from the frame's queue (PopEvent): a key press of each special key and Ctrl/Cmd combination, and a character event for each typed character.

Constructors 1

Event()
Event(int displayIndex)
Event(Event other)

Properties 28

bool alt { get; set; }
int button { get; set; }
bool capsLock { get; set; }
char character { get; set; }
int clickCount { get; set; }
bool command { get; set; }
string commandName { get; set; }
bool control { get; set; }
static Event current { get; set; }
Vector2 delta { get; set; }
int displayIndex { get; set; }
bool functionKey { get; }
bool isDirectManipulationDevice { get; }
bool isKey { get; }
bool isMouse { get; }
bool isScrollWheel { get; }
KeyCode keyCode { get; set; }
EventModifiers modifiers { get; set; }
Vector2 mousePosition { get; set; }
bool numeric { get; set; }
PenStatus penStatus { get; set; }
PointerType pointerType { get; set; }
float pressure { get; set; }
EventType rawType { get; }
bool shift { get; set; }
Vector2 tilt { get; set; }
float twist { get; set; }
EventType type { get; set; }

Methods 6

static int GetEventCount()
EventType GetTypeForControl(int controlID)
static Event KeyboardEvent(string key)

A key press from a description: modifier prefixes (& Alt, ^ Control, % Command, # Shift), then a character ("a", "!") or a key name ("left", "home", "backspace", "return", "f1", "[0]" for the keypad).

static bool PopEvent(Event outEvent)

The next event of this frame's input into outEvent; false when there are none left.

string ToString()
void Use()

Not in Tassix yet 3

Equals Finalize GetHashCode