UltEventBase Class

Summary

A serializable event which can be viewed and configured in the inspector.
Assembly
UltEvents.dll
Namespace
UltEvents
Interfaces
Base Types
  • Object
Derived Types
graph BT Type-->Base0["Object"] Type-.->Interface0["IUltEventBase"] click Interface0 "/ultevents/api/UltEvents/IUltEventBase" Type["UltEventBase"] class Type type-node Derived0["UltEvent<T0, T1>"]-->Type click Derived0 "/ultevents/api/UltEvents/UltEvent_2" Derived1["UltEvent<T0, T1, T2>"]-->Type click Derived1 "/ultevents/api/UltEvents/UltEvent_3" Derived2["UltEvent<T0, T1, T2, T3>"]-->Type click Derived2 "/ultevents/api/UltEvents/UltEvent_4" Derived3["UltEvent"]-->Type click Derived3 "/ultevents/api/UltEvents/UltEvent" Derived4["UltEvent<T0>"]-->Type click Derived4 "/ultevents/api/UltEvents/UltEvent_1"

Syntax

[Serializable]
public abstract class UltEventBase : IUltEventBase

Remarks

This is a more versatile and user friendly implementation than UnityEvent.

Attributes

Type Description
SerializableAttribute

Properties

Name Value Summary
DynamicCallsBase Delegate
The non-serialized method and parameter details of this event.
HasCalls bool
Returns true if this event has any UltEvents.UltEventBase.PersistentCallsList or UltEvents.UltEventBase.DynamicCallsBase registered.
ParameterCount int
The number of parameters this event takes.
ParameterTypes Type[]
The type of each of this event's parameters.
PersistentCallsList List<PersistentCall>
The serialized method and parameter details of this event.

Methods

Name Value Summary
AddPersistentCall(Delegate) PersistentCall
Adds the specified `method` to the persistent call list.
AddPersistentCall<T>(T, Action) PersistentCall
Ensures that `ultEvent` isn't null and adds `method` to its UltEvents.UltEventBase.PersistentCallsList.
static
AddPersistentCall<T>(T, Delegate) PersistentCall
Ensures that `ultEvent` isn't null and adds `method` to its UltEvents.UltEventBase.PersistentCallsList.
static
CacheParameter(Object) void
Stores the `parameter` so it can be accessed by UltEvents.PersistentCalls.
static
CacheParameters(Object[]) void
Stores the `parameters` so they can be accessed by UltEvents.PersistentCalls.
static
Clear() void
Clears all UltEvents.UltEventBase.PersistentCallsList and UltEvents.UltEventBase.DynamicCallsBase registered to this event.
CopyFrom(UltEventBase) void
Copies the contents of this the `target` event to this event.
DynamicInvoke(Object[]) void
Invokes all PersistentCalls then all DynamicCalls.
InvokePersistentCalls() void
Invokes all UltEvents.PersistentCalls registered to this event.
OnDynamicCallsChanged() void
Clears the cached invocation list of UltEvents.UltEventBase.DynamicCallsBase.
RemovePersistentCall(Delegate) void
Removes the specified `method` from the persistent call list.
RemovePersistentCall(UltEventBase, Action) void
If `ultEvent` isn't null, this method removes `method` from its UltEvents.UltEventBase.PersistentCallsList.
static
RemovePersistentCall(UltEventBase, Delegate) void
If `ultEvent` isn't null, this method removes `method` from its UltEvents.UltEventBase.PersistentCallsList.
static
ToString() string
Returns a description of this event.
ToString(StringBuilder) void
Appends a description of this event.