ChangeEvent<T>
Sends an event when a value in a field changes.
Read time 2 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: EventBase<ChangeEvent<T>>
- Implements: IDisposable, IChangeEvent
public class ChangeEvent<T> : EventBase<ChangeEvent<T>>, IDisposable, IChangeEvent
Constructors
Constructor | Description |
|---|---|
| ChangeEvent`1() | Constructor. |
Properties
Property | Description |
|---|---|
| newValue | The new value. |
| previousValue | The value before the change occured. |
Methods
Method | Description |
|---|---|
| Init | Sets the event to its initial state. |
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 |