Skip to main content

Class AddLateEventUnity<T0, T1, TEvent>

Version of with 2 arguments Create a non-generic class inheriting from this to use in inspector. Same rules as

Inheritance
System.Object
Mirage.Events.AddLateEventBase
Mirage.Events.AddLateEvent<T0, T1>
Inherited Members
Show

Mirage.Events.AddLateEvent<T0, T1>._arg0

Mirage.Events.AddLateEvent<T0, T1>._arg1

Mirage.Events.AddLateEvent<T0, T1>.AddListener(System.Action<T0, T1>)

Mirage.Events.AddLateEvent<T0, T1>.RemoveListener(System.Action<T0, T1>)

Mirage.Events.AddLateEvent<T0, T1>.Invoke(T0, T1)

Mirage.Events.AddLateEventBase.HasInvoked

Mirage.Events.AddLateEventBase.MarkInvoked()

Mirage.Events.AddLateEventBase.Reset()

Syntax
[Serializable]
public abstract class AddLateEventUnity<T0, T1, TEvent> : AddLateEvent<T0, T1>, IAddLateEventUnity<T0, T1>, IAddLateEvent<T0, T1> where TEvent : UnityEvent<T0, T1>, new()
Type Parameters
NameDescription
T0
T1
TEvent

Methods

AddListener(UnityAction<T0, T1>)

Declaration
public void AddListener(UnityAction<T0, T1> handler)
Parameters
TypeNameDescription
UnityAction<T0, T1>handler

RemoveListener(UnityAction<T0, T1>)

Declaration
public void RemoveListener(UnityAction<T0, T1> handler)
Parameters
TypeNameDescription
UnityAction<T0, T1>handler

Invoke(T0, T1)

Declaration
public override void Invoke(T0 arg0, T1 arg1)
Parameters
TypeNameDescription
T0arg0
T1arg1

RemoveAllListeners()

Remove all non-persisent (ie created from script) listeners from the event.

Declaration
public void RemoveAllListeners()