Skip to main content

IMonoBehaviourMethods

Trait IMonoBehaviourMethods 

Source
pub trait IMonoBehaviourMethods: IMonoBehaviour {
Show 22 methods // Provided methods fn is_invoking(self) -> bool { ... } fn cancel_invoke(self) { ... } fn invoke(self, method_name: impl Into<Il2CppString>, time: impl Into<f32>) { ... } fn invoke_repeating( self, method_name: impl Into<Il2CppString>, time: impl Into<f32>, repeat_rate: impl Into<f32>, ) { ... } fn cancel_invoke_2(self, method_name: impl Into<Il2CppString>) { ... } fn is_invoking_2(self, method_name: impl Into<Il2CppString>) -> bool { ... } fn start_coroutine(self, method_name: impl Into<Il2CppString>) -> Coroutine { ... } fn start_coroutine_2( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, ) -> Coroutine { ... } fn start_coroutine_3(self, routine: impl Into<IEnumerator>) -> Coroutine { ... } fn start_coroutine_auto(self, routine: impl Into<IEnumerator>) -> Coroutine { ... } fn stop_coroutine(self, routine: impl Into<IEnumerator>) { ... } fn stop_coroutine_2(self, routine: impl Into<Coroutine>) { ... } fn stop_coroutine_3(self, method_name: impl Into<Il2CppString>) { ... } fn stop_all_coroutines(self) { ... } fn get_use_gui_layout(self) -> bool { ... } fn set_use_gui_layout(self, value: impl Into<bool>) { ... } fn start_coroutine_managed( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, ) -> Coroutine { ... } fn start_coroutine_managed2( self, enumerator: impl Into<IEnumerator>, ) -> Coroutine { ... } fn stop_coroutine_managed(self, routine: impl Into<Coroutine>) { ... } fn stop_coroutine_from_enumerator_managed( self, routine: impl Into<IEnumerator>, ) { ... } fn get_script_class_name(self) -> Il2CppString { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn is_invoking(self) -> bool

IsInvoking() overload

Source

fn cancel_invoke(self)

CancelInvoke() overload

Source

fn invoke(self, method_name: impl Into<Il2CppString>, time: impl Into<f32>)

Invoke(::unity::Il2CppString, f32) overload

Source

fn invoke_repeating( self, method_name: impl Into<Il2CppString>, time: impl Into<f32>, repeat_rate: impl Into<f32>, )

InvokeRepeating(::unity::Il2CppString, f32, f32) overload

Source

fn cancel_invoke_2(self, method_name: impl Into<Il2CppString>)

CancelInvoke(::unity::Il2CppString) overload

Source

fn is_invoking_2(self, method_name: impl Into<Il2CppString>) -> bool

IsInvoking(::unity::Il2CppString) overload

Source

fn start_coroutine(self, method_name: impl Into<Il2CppString>) -> Coroutine

StartCoroutine(::unity::Il2CppString) overload

Source

fn start_coroutine_2( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, ) -> Coroutine

StartCoroutine(::unity::Il2CppString, crate::system::object::Object) overload

Source

fn start_coroutine_3(self, routine: impl Into<IEnumerator>) -> Coroutine

StartCoroutine(crate::system::collections::ienumerator::IEnumerator) overload

Source

fn start_coroutine_auto(self, routine: impl Into<IEnumerator>) -> Coroutine

StartCoroutine_Auto(crate::system::collections::ienumerator::IEnumerator) overload

Source

fn stop_coroutine(self, routine: impl Into<IEnumerator>)

StopCoroutine(crate::system::collections::ienumerator::IEnumerator) overload

Source

fn stop_coroutine_2(self, routine: impl Into<Coroutine>)

StopCoroutine(crate::unity_engine::coroutine::Coroutine) overload

Source

fn stop_coroutine_3(self, method_name: impl Into<Il2CppString>)

StopCoroutine(::unity::Il2CppString) overload

Source

fn stop_all_coroutines(self)

StopAllCoroutines() overload

Source

fn get_use_gui_layout(self) -> bool

get_useGUILayout() overload

Source

fn set_use_gui_layout(self, value: impl Into<bool>)

set_useGUILayout(bool) overload

Source

fn start_coroutine_managed( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, ) -> Coroutine

StartCoroutineManaged(::unity::Il2CppString, crate::system::object::Object) overload

Source

fn start_coroutine_managed2( self, enumerator: impl Into<IEnumerator>, ) -> Coroutine

StartCoroutineManaged2(crate::system::collections::ienumerator::IEnumerator) overload

Source

fn stop_coroutine_managed(self, routine: impl Into<Coroutine>)

StopCoroutineManaged(crate::unity_engine::coroutine::Coroutine) overload

Source

fn stop_coroutine_from_enumerator_managed(self, routine: impl Into<IEnumerator>)

StopCoroutineFromEnumeratorManaged(crate::system::collections::ienumerator::IEnumerator) overload

Source

fn get_script_class_name(self) -> Il2CppString

GetScriptClassName() overload

Source

fn ctor(self)

.ctor() 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: IMonoBehaviour> IMonoBehaviourMethods for __T

Available on crate feature unity_engine-monobehaviour only.