FocusEventBase<T>
Base class for focus related events.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: EventBase<T>
- Implements: IDisposable, IFocusEvent
public abstract class FocusEventBase<T> : EventBase<T>, IDisposable, IFocusEvent where T : FocusEventBase<T>, new()
Remarks
Refer to the Focus events manual page for more information and examples.
Properties
Property | Description |
|---|---|
| direction | See IFocusEvent.direction. |
| focusController | The focus controller that emitted the event. |
| relatedTarget | For FocusOut and Blur events, contains the element that gains the focus. For FocusIn and Focus events, contains the element that loses the focus. |
Methods
Method | Description |
|---|---|
| Init | Resets the event members to their initial values. |
Static Methods
Method | Description |
|---|---|
| GetPooled | 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 |