Skip to main content

AltaEvent<T1, T2, T3, T4, UnityEventT1T2T3T4>

A class in Root.Township, the global namespace.

Event with four arguments that runs both an inspector UnityEvent and a C# event, logging handler errors instead of throwing. Unlike the other AltaEvent types it uses Trigger and Triggered.

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 UnityEventT1T2T3T4 triggeredThe serialized inspector UnityEvent. Not created by default, so it is null unless Unity serialized it.

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, T4> TriggeredC# event raised by Trigger.

Methods​

MemberWhat it is
static AltaEvent<T1, T2, T3, T4, UnityEventT1T2T3T4> op_Addition(AltaEvent<T1, T2, T3, T4, UnityEventT1T2T3T4> altaEvent, Action<T1, T2, T3, T4> eventHandler)+ adds a handler to Triggered.
static AltaEvent<T1, T2, T3, T4, UnityEventT1T2T3T4> op_Subtraction(AltaEvent<T1, T2, T3, T4, UnityEventT1T2T3T4> altaEvent, Action<T1, T2, T3, T4> eventHandler)- removes a handler from Triggered.
void Trigger(T1 argument1, T2 argument2, T3 argument3, T4 argument4)Runs the inspector event, then the C# Triggered event, catching and logging errors from each.