Summary
Encapsulates a delegate so it can be serialized for
UltEvents.UltEventBase
.
- Assembly
- UltEvents
.dll - Namespace
- UltEvents
- Base Types
-
- I
Serialization Callback Receiver
- I
graph BT
Type-->Base0["ISerializationCallbackReceiver"]
Type["PersistentCall"]
class Type type-node
Syntax
[Serializable]
public sealed class PersistentCall : ISerializationCallbackReceiver
Attributes
Type | Description |
---|---|
Serializable |
Constructors
Name | Summary |
---|---|
PersistentCall |
Constructs a new UltEvents.PersistentCall with default values. |
PersistentCall |
Constructs a new UltEvents.PersistentCall to serialize the specified `method`. |
PersistentCall |
Constructs a new UltEvents.PersistentCall to serialize the specified `method`. |
PersistentCall |
Constructs a new UltEvents.PersistentCall to serialize the specified `method`. |
Fields
Name | Constant Value | Summary |
---|---|---|
FieldNameSuffix | = |
The character used at the end of a
UltEvents.PersistentCall.MemberName to refer to a field.static
|
Properties
Name | Value | Summary |
---|---|---|
Field | FieldInfo |
The field which this call encapsulates.
|
IsField | bool |
Does this call get or set a
UltEvents.PersistentCall.Field instead of invoking a UltEvents.PersistentCall.Method ? |
IsGetter | bool |
Will this call get the value of the
UltEvents.PersistentCall.Field (otherwise set)? |
Member | MemberInfo |
The
UltEvents.PersistentCall.Field or UltEvents.PersistentCall.Method depending on UltEvents.PersistentCall.IsField . |
MemberName | string |
The name of the
UltEvents.PersistentCall.Method or UltEvents.PersistentCall.Field . |
Method | MethodBase |
The method which this call encapsulates.
|
PersistentArguments | PersistentArgument[] |
The arguments which are passed to the method when it is invoked.
|
Target | UnityEngine |
The object on which the persistent method is called.
|
Methods
Name | Value | Summary |
---|---|---|
CopyFrom |
void |
Copies the contents of the `target` call to this call.
|
Invoke |
Object |
If
UltEvents.PersistentCall.IsField , gets or sets the UltEvents.PersistentCall.Field , else invokes the UltEvents.PersistentCall.Method .
|
IsSupportedNative |
bool |
Returns true if the type of each of the `parameters` can be represented by a non-linked
UltEvents.PersistentArgument .
static
|
IsSupportedNative |
bool |
Returns true if the specified `type` can be represented by a non-linked
UltEvents.PersistentArgument .
static
|
SetArguments |
void |
Sets the value of the first persistent argument.
|
SetArguments |
void |
Sets the value of the first and second persistent arguments.
|
SetArguments |
void |
Sets the value of the first, second, and third persistent arguments.
|
SetArguments |
void |
Sets the value of the first, second, third, and fourth persistent arguments.
|
SetField |
PersistentArgument |
Sets the
UltEvents.PersistentCall.Field .
If not `isGetter`, this method will return the first UltEvents.PersistentArgument
where the value to set will be stored.
|
SetMethod |
void |
Sets the delegate which this call encapsulates.
|
SetMethod |
void |
Sets the
UltEvents.PersistentCall.Method . |
SetMethod |
void |
Sets the
UltEvents.PersistentCall.Method . |
ToString |
string |
Returns a description of this call.
|
ToString |
void |
Appends a description of this call.
|