Version: 2017.3
Experimental: this API is experimental and might be changed or removed in the future.

KeyboardEventBase<T0>.GetPooled

Switch to Manual
public static T GetPooled (char c, KeyCode keyCode, EventModifiers modifiers);
public static T GetPooled (Event systemEvent);

Parameters

c The character for this event.
keyCode The keyCode for this event.
modifiers Event modifier keys that are active for this event.
systemEvent A keyboard IMGUI event.

Returns

T A keyboard event.

Description

Get an event from the event pool and initialize it with the given values. Use this function instead of newing events. Events obtained from this function should be released back to the pool using ReleaseEvent().