UnityEventBase
Abstract base class for UnityEvents.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Events
- Assembly: UnityEngine.CoreModule
- Implements: ISerializationCallbackReceiver
public abstract class UnityEventBase : ISerializationCallbackReceiver
Remarks
This class provides the base functionality for the UnityEvents.
Methods
Method | Description |
|---|---|
| GetPersistentEventCount | Get the number of registered persistent listeners. |
| GetPersistentListenerState | Returns the execution state of a persistent listener. |
| GetPersistentMethodName | Get the target method name of the listener at index index. |
| GetPersistentTarget | Get the target component of the listener at index index. |
| RemoveAllListeners | Remove all non-persistent (ie created from script) listeners from the event. |
| SetPersistentListenerState | Modify the execution state of a persistent listener. |
Static Methods
Method | Description |
|---|---|
| GetValidMethodInfo | Given an object, function name, and a list of argument types; find the method that matches. |