AltaEvent<T1, T2, UnityEventT1T2>
A class in Root.Township, the global namespace.
Two-argument event that runs both inspector-set UnityEvent listeners and C# listeners, logging errors from either instead of throwing.
- Listed in Global namespace: A to B
- Inherits or implements
IAltaEvent<T1, T2>,IAltaEventValidation - Derived types
InteractableEvent,PositionRotationEvent,TransformScaledEvent
Constructors
| Member | What it is |
|---|---|
AltaEvent() | Creates an AltaEvent with default values. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private static Logger logger | Shared AltaEvent logger, used when a handler throws. |
private UnityEventT1T2 triggered | The serialized inspector UnityEvent, invoked before the C# Invoked event. |
Properties
1 private and internal property
Events
| Member | What it is |
|---|---|
event Action<T1, T2> Invoked | C# listeners. |
Methods
| Member | What it is |
|---|---|
void Invoke(T1 argument1, T2 argument2) | Runs the inspector listeners, then Invoked. Exceptions are logged. |
static AltaEvent<T1, T2, UnityEventT1T2> op_Addition(AltaEvent<T1, T2, UnityEventT1T2> altaEvent, Action<T1, T2> eventHandler) | Adds a C# listener. |
static AltaEvent<T1, T2, UnityEventT1T2> op_Subtraction(AltaEvent<T1, T2, UnityEventT1T2> altaEvent, Action<T1, T2> eventHandler) | Removes a C# listener. |