Skip to main content

AltaEvent<T1, T2, T3, UnityEventT1T2T3>

A class in Root.Township, the global namespace.

Event with three arguments that runs both an inspector UnityEvent and a C# event, logging handler errors instead of throwing.

Constructors​

MemberWhat it is
AltaEvent()Creates an AltaEvent with default values.

Fields​

2 private and internal fields
MemberWhat it is
private static Logger loggerShared AltaEvent logger, used when a handler throws.
private UnityEventT1T2T3 triggeredThe serialized inspector UnityEvent, invoked before Invoked.

Properties​

1 private and internal property
MemberWhat it is
private UnityEventBase IAltaEventValidation.EventBase { get; }Exposes the inspector UnityEvent so Validate can clean it.

Events​

MemberWhat it is
event Action<T1, T2, T3> InvokedC# event raised by Invoke, after the inspector event.

Methods​

MemberWhat it is
void Invoke(T1 argument1, T2 argument2, T3 argument3)Fires the Inspector event; a handler that throws is logged and doesn't stop the caller.
static AltaEvent<T1, T2, T3, UnityEventT1T2T3> op_Addition(AltaEvent<T1, T2, T3, UnityEventT1T2T3> altaEvent, Action<T1, T2, T3> eventHandler)+ adds a handler to Invoked.
static AltaEvent<T1, T2, T3, UnityEventT1T2T3> op_Subtraction(AltaEvent<T1, T2, T3, UnityEventT1T2T3> altaEvent, Action<T1, T2, T3> eventHandler)- removes a handler from Invoked.