engage/generated/unity_engine/
runtimeanimatorcontroller.rs1#[cfg(feature = "unity_engine-runtimeanimatorcontroller-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::object_2::{IObject_2, Object_2},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/runtimeanimatorcontroller/RuntimeAnimatorController.md"))]
14 #[::unity::class(namespace = "UnityEngine", name = "RuntimeAnimatorController")]
15 #[parent(crate::unity_engine::object_2::Object_2)]
16 pub struct RuntimeAnimatorController {}
17}
18
19#[cfg(feature = "unity_engine-runtimeanimatorcontroller-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-runtimeanimatorcontroller")]
23pub trait IRuntimeAnimatorControllerMethods: IRuntimeAnimatorController {
24 #[doc = "`.ctor()` overload"]
25 fn ctor(self) -> () {
26 unsafe {
27 let __receiver =
28 <RuntimeAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 ::unity::il2cpp_call!((::unity::module_base()+0x3eb7400usize)as*mut u8,();
30(RuntimeAnimatorController)__receiver)
31 }
32 }
33 #[doc = "`get_animationClips()` overload"]
34 fn get_animation_clips(self) -> ::unity::Array<crate::unity_engine::animationclip::AnimationClip> {
35 unsafe {
36 let __receiver =
37 <RuntimeAnimatorController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x3ebae10usize)as*mut u8, ::unity::Array<crate::unity_engine::animationclip::AnimationClip> ;
39(RuntimeAnimatorController)__receiver)
40 }
41 }
42}
43
44#[cfg(feature = "unity_engine-runtimeanimatorcontroller")]
45impl<__T: IRuntimeAnimatorController> IRuntimeAnimatorControllerMethods for __T {}
46
47#[cfg(feature = "unity_engine-runtimeanimatorcontroller")]
48impl RuntimeAnimatorController {
49 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
50 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
51 }
52
53 pub fn get_animation_clips_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
55 }
56}
57
58#[cfg(feature = "unity_engine-runtimeanimatorcontroller")]
59impl RuntimeAnimatorController {
60 #[doc = "`.ctor()` — no args"]
61 pub fn new() -> Self {
62 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
63 panic!(
64 "{}
65::{}
66 failed to instantiate",
67 ::core::stringify!(RuntimeAnimatorController),
68 ::core::stringify!(new),
69 )
70 });
71 <Self as IRuntimeAnimatorControllerMethods>::ctor(this);
72 this
73 }
74}
75
76#[cfg(feature = "unity_engine-runtimeanimatorcontroller")]
77#[doc(hidden)]
78pub mod prelude {
79 pub use super::{IRuntimeAnimatorController, IRuntimeAnimatorControllerMethods, RuntimeAnimatorController};
80 #[cfg(feature = "system-object")]
81 pub use crate::system::object::IObjectMethods;
82 #[cfg(feature = "unity_engine-object_2")]
83 pub use crate::unity_engine::object_2::IObject_2Methods;
84 pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
85}