Class IMGUIEvent
Class used to send a IMGUI event that has no equivalent UIElements event.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class IMGUIEvent : EventBase<IMGUIEvent>
Constructors
IMGUIEvent()
Constructor. Use GetPooled() to get an event from a pool of reusable events.
Declaration
public IMGUIEvent()
Methods
GetPooled(Event)
Gets an event from the event pool and initializes it with the given values. Use this function instead of creating new events. Events obtained using this method need to be released back to the pool. You can use Dispose()
to release them.
Declaration
public static IMGUIEvent GetPooled(Event systemEvent)
Parameters
Type | Name | Description |
---|---|---|
Event | systemEvent | The IMGUI event used to initialize the event. |
Returns
Type | Description |
---|---|
IMGUIEvent | An initialized event. |
Init()
Resets the event members to their initial values.
Declaration
protected override void Init()
Overrides
UnityEngine.UIElements.EventBase<UnityEngine.UIElements.IMGUIEvent>.Init()