Summary
A serializable event which can be viewed and configured in the inspector.
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IUltEventBase"]
click Interface0 "/ultevents/api/UltEvents/IUltEventBase"
Type["UltEventBase"]
class Type type-node
Derived0["UltEvent"]-->Type
click Derived0 "/ultevents/api/UltEvents/UltEvent"
Derived1["UltEvent<T0, T1, T2, T3>"]-->Type
click Derived1 "/ultevents/api/UltEvents/UltEvent_4"
Derived2["UltEvent<T0, T1>"]-->Type
click Derived2 "/ultevents/api/UltEvents/UltEvent_2"
Derived3["UltEvent<T0>"]-->Type
click Derived3 "/ultevents/api/UltEvents/UltEvent_1"
Derived4["UltEvent<T0, T1, T2>"]-->Type
click Derived4 "/ultevents/api/UltEvents/UltEvent_3"
Syntax
[Serializable]
public abstract class UltEventBase : IUltEventBase
Remarks
This is a more versatile and user friendly implementation than
UnityEvent
.Attributes
Type | Description |
---|---|
Serializable |
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 |
The serialized method and parameter details of this event.
|
Methods
Name | Value | Summary |
---|---|---|
AddPersistentCall |
PersistentCall |
Adds the specified `method` to the persistent call list.
|
AddPersistentCall |
PersistentCall |
Ensures that `ultEvent` isn't null and adds `method` to its
UltEvents.UltEventBase.PersistentCallsList .static
|
AddPersistentCall |
PersistentCall |
Ensures that `ultEvent` isn't null and adds `method` to its
UltEvents.UltEventBase.PersistentCallsList .static
|
CacheParameter |
void |
Stores the `parameter` so it can be accessed by
UltEvents.PersistentCall s.
static
|
CacheParameters |
void |
Stores the `parameters` so they can be accessed by
UltEvents.PersistentCall s.
static
|
Clear |
void |
Clears all
UltEvents.UltEventBase.PersistentCallsList and UltEvents.UltEventBase.DynamicCallsBase registered to this event.
|
CopyFrom |
void |
Copies the contents of this the `target` event to this event.
|
DynamicInvoke |
void |
Invokes all
PersistentCalls then all DynamicCalls .
|
Invoke |
void |
Invokes all
UltEvents.PersistentCall s registered to this event. |
On |
void |
Clears the cached invocation list of
UltEvents.UltEventBase.DynamicCallsBase .
|
RemovePersistentCall |
void |
Removes the specified `method` from the persistent call list.
|
RemovePersistentCall |
void |
If `ultEvent` isn't null, this method removes `method` from its
UltEvents.UltEventBase.PersistentCallsList .static
|
RemovePersistentCall |
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 |
void |
Appends a description of this event.
|