Skip to main content

Class AddLateEventUnity<T0, TEvent>

Version of with 1 argument 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>
Inherited Members
Show

Mirage.Events.AddLateEvent<T0>._arg0

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

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

Mirage.Events.AddLateEventBase.HasInvoked

Mirage.Events.AddLateEventBase.MarkInvoked()

Mirage.Events.AddLateEventBase.Reset()

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

Methods

AddListener(UnityAction<T0>)

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

RemoveListener(UnityAction<T0>)

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

Invoke(T0)

Declaration
public override void Invoke(T0 arg0)
Parameters
TypeNameDescription
T0arg0

RemoveAllListeners()

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

Declaration
public void RemoveAllListeners()