Skip to main content

IInvokableCallMethods

Trait IInvokableCallMethods 

Source
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§

Source

fn add_delegate(self, value: impl Into<UnityAction>)

add_Delegate(crate::unity_engine::events::unityaction::UnityAction) overload

Source

fn remove_delegate(self, value: impl Into<UnityAction>)

remove_Delegate(crate::unity_engine::events::unityaction::UnityAction) overload

Source

fn ctor(self, target: impl Into<Object>, the_function: impl Into<MethodInfo>)

.ctor(crate::system::object::Object, crate::system::reflection::methodinfo::MethodInfo) overload

Source

fn ctor_2(self, action: impl Into<UnityAction>)

.ctor(crate::unity_engine::events::unityaction::UnityAction) overload

Source

fn invoke(self, args: impl Into<Array<Object>>)

Invoke(::unity::Array<crate::system::object::Object>) overload

Source

fn invoke_2(self)

Invoke() overload

Source

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§

Source§

impl<__T: IInvokableCall> IInvokableCallMethods for __T

Available on crate feature unity_engine-events-invokablecall only.