PersistentCall Class

Summary

Encapsulates a delegate so it can be serialized for UltEvents.UltEventBase.
Assembly
UltEvents.dll
Namespace
UltEvents
Base Types
  • ISerializationCallbackReceiver
graph BT Type-->Base0["ISerializationCallbackReceiver"] Type["PersistentCall"] class Type type-node

Syntax

[Serializable]
public sealed class PersistentCall : ISerializationCallbackReceiver

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
PersistentCall() Constructs a new UltEvents.PersistentCall with default values.
PersistentCall(Action) Constructs a new UltEvents.PersistentCall to serialize the specified `method`.
PersistentCall(Delegate) Constructs a new UltEvents.PersistentCall to serialize the specified `method`.
PersistentCall(MethodInfo, UnityEngine.Object) 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.Object
The object on which the persistent method is called.

Methods

Name Value Summary
CopyFrom(PersistentCall) 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(ParameterInfo[]) bool
Returns true if the type of each of the `parameters` can be represented by a non-linked UltEvents.PersistentArgument.
static
IsSupportedNative(Type) bool
Returns true if the specified `type` can be represented by a non-linked UltEvents.PersistentArgument.
static
SetArguments(Object) void
Sets the value of the first persistent argument.
SetArguments(Object, Object) void
Sets the value of the first and second persistent arguments.
SetArguments(Object, Object, Object) void
Sets the value of the first, second, and third persistent arguments.
SetArguments(Object, Object, Object, Object) void
Sets the value of the first, second, third, and fourth persistent arguments.
SetField(FieldInfo, UnityEngine.Object, bool) 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(Action) void
Sets the delegate which this call encapsulates.
SetMethod(Delegate) void
Sets the UltEvents.PersistentCall.Method.
SetMethod(MethodBase, UnityEngine.Object) void
Sets the UltEvents.PersistentCall.Method.
ToString() string
Returns a description of this call.
ToString(StringBuilder) void
Appends a description of this call.