pub trait IInvokableCallMethods: IInvokableCall {
// Provided methods
fn add_delegate(self, value: impl Into<UnityAction>) { ... }
fn remove_delegate(self, value: impl Into<UnityAction>) { ... }
fn ctor(
self,
target: impl Into<Object>,
the_function: impl Into<MethodInfo>,
) { ... }
fn ctor_2(self, action: impl Into<UnityAction>) { ... }
fn invoke(self, args: impl Into<Array<Object>>) { ... }
fn invoke_2(self) { ... }
fn find(
self,
target_obj: impl Into<Object>,
method: impl Into<MethodInfo>,
) -> bool { ... }
}Provided Methods§
Sourcefn add_delegate(self, value: impl Into<UnityAction>)
fn add_delegate(self, value: impl Into<UnityAction>)
add_Delegate(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn remove_delegate(self, value: impl Into<UnityAction>)
fn remove_delegate(self, value: impl Into<UnityAction>)
remove_Delegate(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn ctor(self, target: impl Into<Object>, the_function: impl Into<MethodInfo>)
fn ctor(self, target: impl Into<Object>, the_function: impl Into<MethodInfo>)
.ctor(crate::system::object::Object, crate::system::reflection::methodinfo::MethodInfo) overload
Sourcefn ctor_2(self, action: impl Into<UnityAction>)
fn ctor_2(self, action: impl Into<UnityAction>)
.ctor(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn invoke(self, args: impl Into<Array<Object>>)
fn invoke(self, args: impl Into<Array<Object>>)
Invoke(::unity::Array<crate::system::object::Object>) overload
Sourcefn find(
self,
target_obj: impl Into<Object>,
method: impl Into<MethodInfo>,
) -> bool
fn find( self, target_obj: impl Into<Object>, method: impl Into<MethodInfo>, ) -> bool
Find(crate::system::object::Object, crate::system::reflection::methodinfo::MethodInfo) overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IInvokableCall> IInvokableCallMethods for __T
Available on crate feature
unity_engine-events-invokablecall only.