InputEvent
Sends an event when text from a TextField changes.
Read time 2 minutesLast updated 9 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: EventBase<InputEvent>
- Implements: IDisposable
public class InputEvent : EventBase<InputEvent>, IDisposable
Constructors
Constructor | Description |
|---|---|
| InputEvent() | Constructor. |
Properties
Property | Description |
|---|---|
| newData | The new text. |
| previousData | The text before the change occured. |
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 |