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§
Sourcefn is_invoking(self) -> bool
fn is_invoking(self) -> bool
IsInvoking() overload
Sourcefn cancel_invoke(self)
fn cancel_invoke(self)
CancelInvoke() overload
Sourcefn invoke(self, method_name: impl Into<Il2CppString>, time: impl Into<f32>)
fn invoke(self, method_name: impl Into<Il2CppString>, time: impl Into<f32>)
Invoke(::unity::Il2CppString, f32) overload
Sourcefn invoke_repeating(
self,
method_name: impl Into<Il2CppString>,
time: impl Into<f32>,
repeat_rate: impl Into<f32>,
)
fn invoke_repeating( self, method_name: impl Into<Il2CppString>, time: impl Into<f32>, repeat_rate: impl Into<f32>, )
InvokeRepeating(::unity::Il2CppString, f32, f32) overload
Sourcefn cancel_invoke_2(self, method_name: impl Into<Il2CppString>)
fn cancel_invoke_2(self, method_name: impl Into<Il2CppString>)
CancelInvoke(::unity::Il2CppString) overload
Sourcefn is_invoking_2(self, method_name: impl Into<Il2CppString>) -> bool
fn is_invoking_2(self, method_name: impl Into<Il2CppString>) -> bool
IsInvoking(::unity::Il2CppString) overload
Sourcefn start_coroutine(self, method_name: impl Into<Il2CppString>) -> Coroutine
fn start_coroutine(self, method_name: impl Into<Il2CppString>) -> Coroutine
StartCoroutine(::unity::Il2CppString) overload
Sourcefn start_coroutine_2(
self,
method_name: impl Into<Il2CppString>,
value: impl Into<Object>,
) -> Coroutine
fn start_coroutine_2( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, ) -> Coroutine
StartCoroutine(::unity::Il2CppString, crate::system::object::Object) overload
Sourcefn start_coroutine_3(self, routine: impl Into<IEnumerator>) -> Coroutine
fn start_coroutine_3(self, routine: impl Into<IEnumerator>) -> Coroutine
StartCoroutine(crate::system::collections::ienumerator::IEnumerator) overload
Sourcefn start_coroutine_auto(self, routine: impl Into<IEnumerator>) -> Coroutine
fn start_coroutine_auto(self, routine: impl Into<IEnumerator>) -> Coroutine
StartCoroutine_Auto(crate::system::collections::ienumerator::IEnumerator) overload
Sourcefn stop_coroutine(self, routine: impl Into<IEnumerator>)
fn stop_coroutine(self, routine: impl Into<IEnumerator>)
StopCoroutine(crate::system::collections::ienumerator::IEnumerator) overload
Sourcefn stop_coroutine_2(self, routine: impl Into<Coroutine>)
fn stop_coroutine_2(self, routine: impl Into<Coroutine>)
StopCoroutine(crate::unity_engine::coroutine::Coroutine) overload
Sourcefn stop_coroutine_3(self, method_name: impl Into<Il2CppString>)
fn stop_coroutine_3(self, method_name: impl Into<Il2CppString>)
StopCoroutine(::unity::Il2CppString) overload
Sourcefn stop_all_coroutines(self)
fn stop_all_coroutines(self)
StopAllCoroutines() overload
Sourcefn get_use_gui_layout(self) -> bool
fn get_use_gui_layout(self) -> bool
get_useGUILayout() overload
Sourcefn set_use_gui_layout(self, value: impl Into<bool>)
fn set_use_gui_layout(self, value: impl Into<bool>)
set_useGUILayout(bool) overload
Sourcefn start_coroutine_managed(
self,
method_name: impl Into<Il2CppString>,
value: impl Into<Object>,
) -> Coroutine
fn start_coroutine_managed( self, method_name: impl Into<Il2CppString>, value: impl Into<Object>, ) -> Coroutine
StartCoroutineManaged(::unity::Il2CppString, crate::system::object::Object) overload
Sourcefn start_coroutine_managed2(
self,
enumerator: impl Into<IEnumerator>,
) -> Coroutine
fn start_coroutine_managed2( self, enumerator: impl Into<IEnumerator>, ) -> Coroutine
StartCoroutineManaged2(crate::system::collections::ienumerator::IEnumerator) overload
Sourcefn stop_coroutine_managed(self, routine: impl Into<Coroutine>)
fn stop_coroutine_managed(self, routine: impl Into<Coroutine>)
StopCoroutineManaged(crate::unity_engine::coroutine::Coroutine) overload
Sourcefn stop_coroutine_from_enumerator_managed(self, routine: impl Into<IEnumerator>)
fn stop_coroutine_from_enumerator_managed(self, routine: impl Into<IEnumerator>)
StopCoroutineFromEnumeratorManaged(crate::system::collections::ienumerator::IEnumerator) overload
Sourcefn get_script_class_name(self) -> Il2CppString
fn get_script_class_name(self) -> Il2CppString
GetScriptClassName() 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: IMonoBehaviour> IMonoBehaviourMethods for __T
unity_engine-monobehaviour only.