My Project
|
Public Member Functions | |
object | Call (string methodName) |
Attempt to call a method on the managed instance with the specifie name. This works in a similar way as UnityEngine.GameObject.SendMessage(string) where the method name is specified. The target method must not accept any arguments. The target method will be called using ProxyCallConvention.Any | |
object | Call (string methodName, ProxyCallConvention callConvention) |
Attempt to call a method on the managed instance with the specified name. This works in a similar way as UnityEngine.GameObject.SendMessage(string) where the method name is specified. The target method must not accept any arguments. | |
object | Call (string methodName, params object[] arguments) |
Attempt to call a method on the managed instance with the specified name and arguments. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the method name is specified. Any number of arguments may be specified but the target method must expect the arguments. The target method will be called using ProxyCallConvention.Any | |
object | Call (string methodName, ProxyCallConvention callConvention, params object[] arguments) |
Attempt to call a method on the managed instance with the specified name and arguments. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the method name is specified. Any number of arguments may be specified but the target method must expect the arguments. | |
object | SafeCall (string method) |
Attempt to call a method on the managed instance with the specified name. Any exceptions thrown as a result of locating or calling the method will be caught silently. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the target method name is specified. The target method must not accept any arguments. The target method will be called using ProxyCallConvention.Any | |
object | SafeCall (string method, ProxyCallConvention callConvention) |
Attempt to call a method on the managed instance with the specified name. Any exceptions thrown as a result of locating or calling the method will be caught silently. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the target method name is specified. The target method must not accept any arguments. | |
object | SafeCall (string method, params object[] arguments) |
Attempt to call a method on the managed instance with the specified name. Any exceptions thrown as a result of locating or calling the method will be caught silently. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the target method name is specified. Any number of arguments may be specified but the target method must expect the arguments. The target method will be called using ProxyCallConvention.Any | |
object | SafeCall (string method, ProxyCallConvention callConvention, params object[] arguments) |
Attempt to call a method on the managed instance with the specified name. Any exceptions thrown as a result of locating or calling the method will be caught silently. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the target method name is specified. Any number of arguments may be specified but the target method must expect the arguments. | |
Type | GetInstanceType () |
virtual T | GetInstanceAs< T > (bool throwOnError, T errorValue=default(T)) |
Attempts to get the managed instance as the specified generic type. | |
abstract void | Dispose () |
virtual void | MakePersistent () |
If the managed object is a Unity type then this method will call 'DontDestroyOnLoad' to ensure that the object is able to survie scene loads. | |
Static Public Member Functions | |
static ScriptProxy | CreateScriptProxy (ScriptType type, object instance) |
static T | CreateScriptProxy< T > (ScriptType type, object instance) |
Protected Member Functions | |
abstract void | ConstructInstance (ScriptType type, object instance) |
virtual void | CheckDisposed () |
Properties | |
abstract ScriptAssembly | Assembly [get] |
abstract ScriptType | ScriptType [get] |
virtual IScriptDataProxy | Fields [get] |
Returns the IScriptMemberProxy that provides access to the fields of the wrapped instance. | |
virtual IScriptDataProxy | SafeFields [get] |
Returns the IScriptMemberProxy that provides access to the fields of the wrapped instance. Any exceptions thrown when locating or accessing the propery will be handled. | |
virtual IScriptDataProxy | Properties [get] |
Returns the IScriptMemberProxy that provides access to the properties of the wrapped instance. | |
virtual IScriptDataProxy | SafeProperties [get] |
Returns the IScriptMemberProxy that provides access to the properties of the wrapped instance. Any exceptions thrown when locating or accessing the propery will be handled. | |
virtual IScriptEventProxy | Events [get] |
virtual IScriptEventProxy | SafeEvents [get] |
abstract object | Instance [get] |
virtual UnityEngine.Object | UnityInstance [get] |
virtual UnityEngine.MonoBehaviour | MonoBehaviourInstance [get] |
virtual UnityEngine.ScriptableObject | ScriptableObjectInstance [get] |
virtual bool | IsUnityObject [get] |
virtual bool | IsMonoBehaviour [get] |
virtual bool | IsScriptableObject [get] |
abstract bool | IsDisposed [get] |
|
inline |
Attempt to call a method on the managed instance with the specifie name. This works in a similar way as UnityEngine.GameObject.SendMessage(string) where the method name is specified. The target method must not accept any arguments. The target method will be called using ProxyCallConvention.Any
methodName | The name of the method to call |
The value returned from the target method or null if the target method does not return a value
The value returned from the target method or null if the target method does not return a value
ObjectDisposedException | The proxy has already been disposed |
TargetException | The target method could not be found on the managed type |
|
inline |
Attempt to call a method on the managed instance with the specified name and arguments. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the method name is specified. Any number of arguments may be specified but the target method must expect the arguments. The target method will be called using ProxyCallConvention.Any
methodName | The name of the method to call |
arguments | The arguments passed to the method |
ObjectDisposedException | The proxy has already been disposed |
TargetException | The target method could not be found on the managed type |
|
inline |
Attempt to call a method on the managed instance with the specified name. This works in a similar way as UnityEngine.GameObject.SendMessage(string) where the method name is specified. The target method must not accept any arguments.
methodName | The name of the method to call |
callConvention | The method calling convention |
ObjectDisposedException | The proxy has already been disposed |
TargetException | The target method could not be found on the managed type |
|
inline |
Attempt to call a method on the managed instance with the specified name and arguments. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the method name is specified. Any number of arguments may be specified but the target method must expect the arguments.
methodName | The name of the method to call |
callConvention | The method calling convention |
arguments | The arguments passed to the method |
ObjectDisposedException | The proxy has already been disposed |
TargetException | The target method could not be found on the managed type |
|
inlinestatic |
T | : | ScriptProxy | |
T | : | new() |
|
inlinevirtual |
Attempts to get the managed instance as the specified generic type.
T | The generic type to return the instance as |
throwOnError | When false, any exceptions caused by the conversion will be caught and will result in a default value being returned. When true, any exceptions will not be handled. |
errorValue | The value to return when 'throwOnError' is false and an error occurs"/> |
|
inline |
Attempt to call a method on the managed instance with the specified name. Any exceptions thrown as a result of locating or calling the method will be caught silently. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the target method name is specified. The target method must not accept any arguments. The target method will be called using ProxyCallConvention.Any
method | The name of the method to call |
|
inline |
Attempt to call a method on the managed instance with the specified name. Any exceptions thrown as a result of locating or calling the method will be caught silently. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the target method name is specified. Any number of arguments may be specified but the target method must expect the arguments. The target method will be called using ProxyCallConvention.Any
method | The name of the method to call |
arguments | The arguments passed to the method |
|
inline |
Attempt to call a method on the managed instance with the specified name. Any exceptions thrown as a result of locating or calling the method will be caught silently. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the target method name is specified. The target method must not accept any arguments.
method | The name of the method to call |
callConvention | The method calling convention |
|
inline |
Attempt to call a method on the managed instance with the specified name. Any exceptions thrown as a result of locating or calling the method will be caught silently. This works in a similar was as UnityEngine.GameObject.SendMessage(string) where the target method name is specified. Any number of arguments may be specified but the target method must expect the arguments.
method | The name of the method to call |
callConvention | The method calling convention |
arguments | The arguments passed to the method |
|
get |
Returns the IScriptMemberProxy that provides access to the fields of the wrapped instance.
System.ObjectDisposedException | The proxy has already been disposed |
|
get |
Returns the IScriptMemberProxy that provides access to the properties of the wrapped instance.
System.ObjectDisposedException | The proxy has already been disposed |