Skip to main content

engage/generated/unity_engine/
gameobject.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-gameobject-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/gameobject/GameObject.md"))]
14    #[::unity::class(namespace = "UnityEngine", name = "GameObject")]
15    #[parent(crate::unity_engine::object_2::Object_2)]
16    pub struct GameObject {}
17}
18
19#[cfg(feature = "unity_engine-gameobject-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-gameobject")]
23impl GameObject {
24    #[doc = "`CreatePrimitive(crate::unity_engine::primitivetype::PrimitiveType)` overload"]
25    pub fn create_primitive(
26        r#type: impl ::core::convert::Into<crate::unity_engine::primitivetype::PrimitiveType>,
27    ) -> crate::unity_engine::gameobject::GameObject {
28        unsafe {
29            ::unity::il2cpp_call!((::unity::module_base()+0x2c4dc40usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
30(crate::unity_engine::primitivetype::PrimitiveType)::core::convert::Into::into(r#type))
31        }
32    }
33
34    #[doc = "`FindWithTag(::unity::Il2CppString)` overload"]
35    pub fn find_with_tag(tag: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::gameobject::GameObject {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e480usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
38(::unity::Il2CppString)::core::convert::Into::into(tag))
39        }
40    }
41
42    #[doc = "`FindGameObjectWithTag(::unity::Il2CppString)` overload"]
43    pub fn find_game_object_with_tag(tag: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::gameobject::GameObject {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e4d0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
46(::unity::Il2CppString)::core::convert::Into::into(tag))
47        }
48    }
49
50    #[doc = "`FindGameObjectsWithTag(::unity::Il2CppString)` overload"]
51    pub fn find_game_objects_with_tag(
52        tag: impl ::core::convert::Into<::unity::Il2CppString>,
53    ) -> ::unity::Array<crate::unity_engine::gameobject::GameObject> {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ec40usize)as*mut u8, ::unity::Array<crate::unity_engine::gameobject::GameObject> ;
56(::unity::Il2CppString)::core::convert::Into::into(tag))
57        }
58    }
59
60    #[doc = "`Internal_CreateGameObject(crate::unity_engine::gameobject::GameObject, ::unity::Il2CppString)` overload"]
61    pub fn internal_create_game_object(
62        self_: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
63        name: impl ::core::convert::Into<::unity::Il2CppString>,
64    ) -> () {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ef70usize)as*mut u8,();
67(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(self_),(::unity::Il2CppString)::core::convert::Into::into(name))
68        }
69    }
70
71    #[doc = "`Find(::unity::Il2CppString)` overload"]
72    pub fn find(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::gameobject::GameObject {
73        unsafe {
74            ::unity::il2cpp_call!((::unity::module_base()+0x2c4f190usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
75(::unity::Il2CppString)::core::convert::Into::into(name))
76        }
77    }
78}
79
80#[cfg(feature = "unity_engine-gameobject")]
81pub trait IGameObjectMethods: IGameObject {
82    fn get_component<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> M0 {
83        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
84            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponent", 0));
85        #[allow(clippy::type_complexity)]
86        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
87            ::std::sync::OnceLock::new();
88        let _ = false;
89        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
90            ::core::result::Result::Ok(mi) => *mi,
91            ::core::result::Result::Err(e) => {
92                panic!(
93                    "method lookup failed: {}
94::{}
95: {}
96",
97                    <GameObject as ::unity::ClassIdentity>::NAME,
98                    "GetComponent",
99                    e
100                )
101            },
102        };
103        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
104        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
105        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
106            let mut __guard = __cache.lock().unwrap();
107            *__guard
108                .entry(__key)
109                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
110        };
111        unsafe {
112            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            let __f: extern "C" fn(GameObject, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
114            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
115            __f(__receiver, ::core::option::Option::Some(__mi_opaque))
116        }
117    }
118    #[doc = "`GetComponent(::unity::SystemType)` overload"]
119    fn get_component_2(self, r#type: impl ::core::convert::Into<::unity::SystemType>) -> crate::unity_engine::component::Component {
120        unsafe {
121            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122            ::unity::il2cpp_call!((::unity::module_base()+0x2c46560usize)as*mut u8,crate::unity_engine::component::Component;
123(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
124        }
125    }
126    #[doc = "`GetComponentFastPath(::unity::SystemType, ::unity::IntPtr)` overload"]
127    fn get_component_fast_path(
128        self,
129        r#type: impl ::core::convert::Into<::unity::SystemType>,
130        one_further_than_result_value: impl ::core::convert::Into<::unity::IntPtr>,
131    ) -> () {
132        unsafe {
133            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2c4dc90usize)as*mut u8,();
135(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(::unity::IntPtr)::core::convert::Into::into(one_further_than_result_value))
136        }
137    }
138    #[doc = "`GetComponentByName(::unity::Il2CppString)` overload"]
139    fn get_component_by_name(self, r#type: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::component::Component {
140        unsafe {
141            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x2c4dcf0usize)as*mut u8,crate::unity_engine::component::Component;
143(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(r#type))
144        }
145    }
146    #[doc = "`GetComponent(::unity::Il2CppString)` overload"]
147    fn get_component_3(self, r#type: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::component::Component {
148        unsafe {
149            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x2c4dd40usize)as*mut u8,crate::unity_engine::component::Component;
151(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(r#type))
152        }
153    }
154    #[doc = "`GetComponentInChildren(::unity::SystemType, bool)` overload"]
155    fn get_component_in_children(
156        self,
157        r#type: impl ::core::convert::Into<::unity::SystemType>,
158        include_inactive: impl ::core::convert::Into<bool>,
159    ) -> crate::unity_engine::component::Component {
160        unsafe {
161            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x2c466a0usize)as*mut u8,crate::unity_engine::component::Component;
163(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(bool)::core::convert::Into::into(include_inactive))
164        }
165    }
166    #[doc = "`GetComponentInChildren(::unity::SystemType)` overload"]
167    fn get_component_in_children_2(self, r#type: impl ::core::convert::Into<::unity::SystemType>) -> crate::unity_engine::component::Component {
168        unsafe {
169            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x2c4dd90usize)as*mut u8,crate::unity_engine::component::Component;
171(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
172        }
173    }
174    fn get_component_in_children_3<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> M0 {
175        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
176            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentInChildren", 0)
177        });
178        #[allow(clippy::type_complexity)]
179        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
180            ::std::sync::OnceLock::new();
181        let _ = false;
182        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
183            ::core::result::Result::Ok(mi) => *mi,
184            ::core::result::Result::Err(e) => {
185                panic!(
186                    "method lookup failed: {}
187::{}
188: {}
189",
190                    <GameObject as ::unity::ClassIdentity>::NAME,
191                    "GetComponentInChildren",
192                    e
193                )
194            },
195        };
196        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
197        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
198        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
199            let mut __guard = __cache.lock().unwrap();
200            *__guard
201                .entry(__key)
202                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
203        };
204        unsafe {
205            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            let __f: extern "C" fn(GameObject, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
207            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
208            __f(__receiver, ::core::option::Option::Some(__mi_opaque))
209        }
210    }
211    fn get_component_in_children_4<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
212        self,
213        include_inactive: impl ::core::convert::Into<bool>,
214    ) -> M0 {
215        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
216            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentInChildren", 1)
217        });
218        #[allow(clippy::type_complexity)]
219        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
220            ::std::sync::OnceLock::new();
221        let _ = false;
222        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
223            ::core::result::Result::Ok(mi) => *mi,
224            ::core::result::Result::Err(e) => {
225                panic!(
226                    "method lookup failed: {}
227::{}
228: {}
229",
230                    <GameObject as ::unity::ClassIdentity>::NAME,
231                    "GetComponentInChildren",
232                    e
233                )
234            },
235        };
236        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
237        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
238        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
239            let mut __guard = __cache.lock().unwrap();
240            *__guard
241                .entry(__key)
242                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
243        };
244        unsafe {
245            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            let __f: extern "C" fn(GameObject, bool, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
247            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
248            __f(
249                __receiver,
250                ::core::convert::Into::into(include_inactive),
251                ::core::option::Option::Some(__mi_opaque),
252            )
253        }
254    }
255    #[doc = "`GetComponentInParent(::unity::SystemType, bool)` overload"]
256    fn get_component_in_parent(
257        self,
258        r#type: impl ::core::convert::Into<::unity::SystemType>,
259        include_inactive: impl ::core::convert::Into<bool>,
260    ) -> crate::unity_engine::component::Component {
261        unsafe {
262            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ddf0usize)as*mut u8,crate::unity_engine::component::Component;
264(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(bool)::core::convert::Into::into(include_inactive))
265        }
266    }
267    #[doc = "`GetComponentInParent(::unity::SystemType)` overload"]
268    fn get_component_in_parent_2(self, r#type: impl ::core::convert::Into<::unity::SystemType>) -> crate::unity_engine::component::Component {
269        unsafe {
270            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271            ::unity::il2cpp_call!((::unity::module_base()+0x2c46780usize)as*mut u8,crate::unity_engine::component::Component;
272(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
273        }
274    }
275    fn get_component_in_parent_3<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> M0 {
276        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
277            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentInParent", 0)
278        });
279        #[allow(clippy::type_complexity)]
280        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
281            ::std::sync::OnceLock::new();
282        let _ = false;
283        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
284            ::core::result::Result::Ok(mi) => *mi,
285            ::core::result::Result::Err(e) => {
286                panic!(
287                    "method lookup failed: {}
288::{}
289: {}
290",
291                    <GameObject as ::unity::ClassIdentity>::NAME,
292                    "GetComponentInParent",
293                    e
294                )
295            },
296        };
297        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
298        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
299        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
300            let mut __guard = __cache.lock().unwrap();
301            *__guard
302                .entry(__key)
303                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
304        };
305        unsafe {
306            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307            let __f: extern "C" fn(GameObject, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
308            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
309            __f(__receiver, ::core::option::Option::Some(__mi_opaque))
310        }
311    }
312    fn get_component_in_parent_4<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
313        self,
314        include_inactive: impl ::core::convert::Into<bool>,
315    ) -> M0 {
316        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
317            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentInParent", 1)
318        });
319        #[allow(clippy::type_complexity)]
320        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
321            ::std::sync::OnceLock::new();
322        let _ = false;
323        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
324            ::core::result::Result::Ok(mi) => *mi,
325            ::core::result::Result::Err(e) => {
326                panic!(
327                    "method lookup failed: {}
328::{}
329: {}
330",
331                    <GameObject as ::unity::ClassIdentity>::NAME,
332                    "GetComponentInParent",
333                    e
334                )
335            },
336        };
337        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
338        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
339        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
340            let mut __guard = __cache.lock().unwrap();
341            *__guard
342                .entry(__key)
343                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
344        };
345        unsafe {
346            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
347            let __f: extern "C" fn(GameObject, bool, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
348            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
349            __f(
350                __receiver,
351                ::core::convert::Into::into(include_inactive),
352                ::core::option::Option::Some(__mi_opaque),
353            )
354        }
355    }
356    #[doc = "`GetComponentsInternal(::unity::SystemType, bool, bool, bool, bool, crate::system::object::Object)` overload"]
357    fn get_components_internal(
358        self,
359        r#type: impl ::core::convert::Into<::unity::SystemType>,
360        use_search_type_as_array_return_type: impl ::core::convert::Into<bool>,
361        recursive: impl ::core::convert::Into<bool>,
362        include_inactive: impl ::core::convert::Into<bool>,
363        reverse: impl ::core::convert::Into<bool>,
364        result_list: impl ::core::convert::Into<crate::system::object::Object>,
365    ) -> ::unity::IlInstance {
366        unsafe {
367            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368            ::unity::il2cpp_call!((::unity::module_base()+0x2c4de50usize)as*mut u8, ::unity::IlInstance;
369(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(bool)::core::convert::Into::into(use_search_type_as_array_return_type),(bool)::core::convert::Into::into(recursive),(bool)::core::convert::Into::into(include_inactive),(bool)::core::convert::Into::into(reverse),(crate::system::object::Object)::core::convert::Into::into(result_list))
370        }
371    }
372    #[doc = "`GetComponents(::unity::SystemType)` overload"]
373    fn get_components(self, r#type: impl ::core::convert::Into<::unity::SystemType>) -> ::unity::Array<crate::unity_engine::component::Component> {
374        unsafe {
375            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
376            ::unity::il2cpp_call!((::unity::module_base()+0x2c4dee0usize)as*mut u8, ::unity::Array<crate::unity_engine::component::Component> ;
377(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
378        }
379    }
380    fn get_components_2<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> ::unity::Array<M0> {
381        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
382            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponents", 0));
383        #[allow(clippy::type_complexity)]
384        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
385            ::std::sync::OnceLock::new();
386        let _ = false;
387        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
388            ::core::result::Result::Ok(mi) => *mi,
389            ::core::result::Result::Err(e) => {
390                panic!(
391                    "method lookup failed: {}
392::{}
393: {}
394",
395                    <GameObject as ::unity::ClassIdentity>::NAME,
396                    "GetComponents",
397                    e
398                )
399            },
400        };
401        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
402        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
403        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
404            let mut __guard = __cache.lock().unwrap();
405            *__guard
406                .entry(__key)
407                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
408        };
409        unsafe {
410            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
411            let __f: extern "C" fn(GameObject, ::unity::OptionalMethod) -> ::unity::Array<M0> = ::core::mem::transmute(__inflated.method_ptr);
412            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
413            __f(__receiver, ::core::option::Option::Some(__mi_opaque))
414        }
415    }
416    #[doc = "`GetComponents(::unity::SystemType, crate::system::collections::generic::list_1::List_1<crate::unity_engine::component::Component>)` overload"]
417    fn get_components_3(
418        self,
419        r#type: impl ::core::convert::Into<::unity::SystemType>,
420        results: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::component::Component>>,
421    ) -> () {
422        unsafe {
423            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
424            ::unity::il2cpp_call!((::unity::module_base()+0x2c4dfa0usize)as*mut u8,();
425(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::component::Component>)::core::convert::Into::into(results))
426        }
427    }
428    fn get_components_4<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
429        self,
430        results: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<M0>>,
431    ) -> () {
432        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
433            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponents", 1));
434        #[allow(clippy::type_complexity)]
435        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
436            ::std::sync::OnceLock::new();
437        let _ = false;
438        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
439            ::core::result::Result::Ok(mi) => *mi,
440            ::core::result::Result::Err(e) => {
441                panic!(
442                    "method lookup failed: {}
443::{}
444: {}
445",
446                    <GameObject as ::unity::ClassIdentity>::NAME,
447                    "GetComponents",
448                    e
449                )
450            },
451        };
452        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
453        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
454        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
455            let mut __guard = __cache.lock().unwrap();
456            *__guard
457                .entry(__key)
458                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
459        };
460        unsafe {
461            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
462            let __f: extern "C" fn(GameObject, crate::system::collections::generic::list_1::List_1<M0>, ::unity::OptionalMethod) -> () =
463                ::core::mem::transmute(__inflated.method_ptr);
464            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
465            __f(
466                __receiver,
467                ::core::convert::Into::into(results),
468                ::core::option::Option::Some(__mi_opaque),
469            )
470        }
471    }
472    #[doc = "`GetComponentsInChildren(::unity::SystemType)` overload"]
473    fn get_components_in_children(
474        self,
475        r#type: impl ::core::convert::Into<::unity::SystemType>,
476    ) -> ::unity::Array<crate::unity_engine::component::Component> {
477        unsafe {
478            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
479            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e010usize)as*mut u8, ::unity::Array<crate::unity_engine::component::Component> ;
480(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
481        }
482    }
483    #[doc = "`GetComponentsInChildren(::unity::SystemType, bool)` overload"]
484    fn get_components_in_children_2(
485        self,
486        r#type: impl ::core::convert::Into<::unity::SystemType>,
487        include_inactive: impl ::core::convert::Into<bool>,
488    ) -> ::unity::Array<crate::unity_engine::component::Component> {
489        unsafe {
490            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e0d0usize)as*mut u8, ::unity::Array<crate::unity_engine::component::Component> ;
492(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(bool)::core::convert::Into::into(include_inactive))
493        }
494    }
495    fn get_components_in_children_3<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
496        self,
497        include_inactive: impl ::core::convert::Into<bool>,
498    ) -> ::unity::Array<M0> {
499        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
500            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentsInChildren", 1)
501        });
502        #[allow(clippy::type_complexity)]
503        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
504            ::std::sync::OnceLock::new();
505        let _ = false;
506        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
507            ::core::result::Result::Ok(mi) => *mi,
508            ::core::result::Result::Err(e) => {
509                panic!(
510                    "method lookup failed: {}
511::{}
512: {}
513",
514                    <GameObject as ::unity::ClassIdentity>::NAME,
515                    "GetComponentsInChildren",
516                    e
517                )
518            },
519        };
520        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
521        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
522        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
523            let mut __guard = __cache.lock().unwrap();
524            *__guard
525                .entry(__key)
526                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
527        };
528        unsafe {
529            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
530            let __f: extern "C" fn(GameObject, bool, ::unity::OptionalMethod) -> ::unity::Array<M0> = ::core::mem::transmute(__inflated.method_ptr);
531            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
532            __f(
533                __receiver,
534                ::core::convert::Into::into(include_inactive),
535                ::core::option::Option::Some(__mi_opaque),
536            )
537        }
538    }
539    fn get_components_in_children_4<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
540        self,
541        include_inactive: impl ::core::convert::Into<bool>,
542        results: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<M0>>,
543    ) -> () {
544        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
545            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentsInChildren", 2)
546        });
547        #[allow(clippy::type_complexity)]
548        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
549            ::std::sync::OnceLock::new();
550        let _ = false;
551        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
552            ::core::result::Result::Ok(mi) => *mi,
553            ::core::result::Result::Err(e) => {
554                panic!(
555                    "method lookup failed: {}
556::{}
557: {}
558",
559                    <GameObject as ::unity::ClassIdentity>::NAME,
560                    "GetComponentsInChildren",
561                    e
562                )
563            },
564        };
565        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
566        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
567        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
568            let mut __guard = __cache.lock().unwrap();
569            *__guard
570                .entry(__key)
571                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
572        };
573        unsafe {
574            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
575            let __f: extern "C" fn(GameObject, bool, crate::system::collections::generic::list_1::List_1<M0>, ::unity::OptionalMethod) -> () =
576                ::core::mem::transmute(__inflated.method_ptr);
577            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
578            __f(
579                __receiver,
580                ::core::convert::Into::into(include_inactive),
581                ::core::convert::Into::into(results),
582                ::core::option::Option::Some(__mi_opaque),
583            )
584        }
585    }
586    fn get_components_in_children_5<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> ::unity::Array<M0> {
587        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
588            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentsInChildren", 0)
589        });
590        #[allow(clippy::type_complexity)]
591        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
592            ::std::sync::OnceLock::new();
593        let _ = false;
594        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
595            ::core::result::Result::Ok(mi) => *mi,
596            ::core::result::Result::Err(e) => {
597                panic!(
598                    "method lookup failed: {}
599::{}
600: {}
601",
602                    <GameObject as ::unity::ClassIdentity>::NAME,
603                    "GetComponentsInChildren",
604                    e
605                )
606            },
607        };
608        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
609        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
610        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
611            let mut __guard = __cache.lock().unwrap();
612            *__guard
613                .entry(__key)
614                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
615        };
616        unsafe {
617            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
618            let __f: extern "C" fn(GameObject, ::unity::OptionalMethod) -> ::unity::Array<M0> = ::core::mem::transmute(__inflated.method_ptr);
619            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
620            __f(__receiver, ::core::option::Option::Some(__mi_opaque))
621        }
622    }
623    fn get_components_in_children_6<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
624        self,
625        results: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<M0>>,
626    ) -> () {
627        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
628            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentsInChildren", 1)
629        });
630        #[allow(clippy::type_complexity)]
631        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
632            ::std::sync::OnceLock::new();
633        let _ = false;
634        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
635            ::core::result::Result::Ok(mi) => *mi,
636            ::core::result::Result::Err(e) => {
637                panic!(
638                    "method lookup failed: {}
639::{}
640: {}
641",
642                    <GameObject as ::unity::ClassIdentity>::NAME,
643                    "GetComponentsInChildren",
644                    e
645                )
646            },
647        };
648        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
649        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
650        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
651            let mut __guard = __cache.lock().unwrap();
652            *__guard
653                .entry(__key)
654                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
655        };
656        unsafe {
657            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
658            let __f: extern "C" fn(GameObject, crate::system::collections::generic::list_1::List_1<M0>, ::unity::OptionalMethod) -> () =
659                ::core::mem::transmute(__inflated.method_ptr);
660            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
661            __f(
662                __receiver,
663                ::core::convert::Into::into(results),
664                ::core::option::Option::Some(__mi_opaque),
665            )
666        }
667    }
668    #[doc = "`GetComponentsInParent(::unity::SystemType)` overload"]
669    fn get_components_in_parent(
670        self,
671        r#type: impl ::core::convert::Into<::unity::SystemType>,
672    ) -> ::unity::Array<crate::unity_engine::component::Component> {
673        unsafe {
674            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
675            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e190usize)as*mut u8, ::unity::Array<crate::unity_engine::component::Component> ;
676(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
677        }
678    }
679    #[doc = "`GetComponentsInParent(::unity::SystemType, bool)` overload"]
680    fn get_components_in_parent_2(
681        self,
682        r#type: impl ::core::convert::Into<::unity::SystemType>,
683        include_inactive: impl ::core::convert::Into<bool>,
684    ) -> ::unity::Array<crate::unity_engine::component::Component> {
685        unsafe {
686            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
687            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e250usize)as*mut u8, ::unity::Array<crate::unity_engine::component::Component> ;
688(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(bool)::core::convert::Into::into(include_inactive))
689        }
690    }
691    fn get_components_in_parent_3<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
692        self,
693        include_inactive: impl ::core::convert::Into<bool>,
694        results: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<M0>>,
695    ) -> () {
696        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
697            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentsInParent", 2)
698        });
699        #[allow(clippy::type_complexity)]
700        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
701            ::std::sync::OnceLock::new();
702        let _ = false;
703        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
704            ::core::result::Result::Ok(mi) => *mi,
705            ::core::result::Result::Err(e) => {
706                panic!(
707                    "method lookup failed: {}
708::{}
709: {}
710",
711                    <GameObject as ::unity::ClassIdentity>::NAME,
712                    "GetComponentsInParent",
713                    e
714                )
715            },
716        };
717        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
718        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
719        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
720            let mut __guard = __cache.lock().unwrap();
721            *__guard
722                .entry(__key)
723                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
724        };
725        unsafe {
726            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
727            let __f: extern "C" fn(GameObject, bool, crate::system::collections::generic::list_1::List_1<M0>, ::unity::OptionalMethod) -> () =
728                ::core::mem::transmute(__inflated.method_ptr);
729            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
730            __f(
731                __receiver,
732                ::core::convert::Into::into(include_inactive),
733                ::core::convert::Into::into(results),
734                ::core::option::Option::Some(__mi_opaque),
735            )
736        }
737    }
738    fn get_components_in_parent_4<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
739        self,
740        include_inactive: impl ::core::convert::Into<bool>,
741    ) -> ::unity::Array<M0> {
742        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
743            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentsInParent", 1)
744        });
745        #[allow(clippy::type_complexity)]
746        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
747            ::std::sync::OnceLock::new();
748        let _ = false;
749        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
750            ::core::result::Result::Ok(mi) => *mi,
751            ::core::result::Result::Err(e) => {
752                panic!(
753                    "method lookup failed: {}
754::{}
755: {}
756",
757                    <GameObject as ::unity::ClassIdentity>::NAME,
758                    "GetComponentsInParent",
759                    e
760                )
761            },
762        };
763        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
764        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
765        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
766            let mut __guard = __cache.lock().unwrap();
767            *__guard
768                .entry(__key)
769                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
770        };
771        unsafe {
772            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
773            let __f: extern "C" fn(GameObject, bool, ::unity::OptionalMethod) -> ::unity::Array<M0> = ::core::mem::transmute(__inflated.method_ptr);
774            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
775            __f(
776                __receiver,
777                ::core::convert::Into::into(include_inactive),
778                ::core::option::Option::Some(__mi_opaque),
779            )
780        }
781    }
782    fn get_components_in_parent_5<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> ::unity::Array<M0> {
783        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
784            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "GetComponentsInParent", 0)
785        });
786        #[allow(clippy::type_complexity)]
787        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
788            ::std::sync::OnceLock::new();
789        let _ = false;
790        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
791            ::core::result::Result::Ok(mi) => *mi,
792            ::core::result::Result::Err(e) => {
793                panic!(
794                    "method lookup failed: {}
795::{}
796: {}
797",
798                    <GameObject as ::unity::ClassIdentity>::NAME,
799                    "GetComponentsInParent",
800                    e
801                )
802            },
803        };
804        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
805        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
806        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
807            let mut __guard = __cache.lock().unwrap();
808            *__guard
809                .entry(__key)
810                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
811        };
812        unsafe {
813            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
814            let __f: extern "C" fn(GameObject, ::unity::OptionalMethod) -> ::unity::Array<M0> = ::core::mem::transmute(__inflated.method_ptr);
815            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
816            __f(__receiver, ::core::option::Option::Some(__mi_opaque))
817        }
818    }
819    fn try_get_component<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
820        self,
821        component: impl ::core::convert::Into<*mut M0>,
822    ) -> bool {
823        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
824            ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "TryGetComponent", 1)
825        });
826        #[allow(clippy::type_complexity)]
827        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
828            ::std::sync::OnceLock::new();
829        let _ = false;
830        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
831            ::core::result::Result::Ok(mi) => *mi,
832            ::core::result::Result::Err(e) => {
833                panic!(
834                    "method lookup failed: {}
835::{}
836: {}
837",
838                    <GameObject as ::unity::ClassIdentity>::NAME,
839                    "TryGetComponent",
840                    e
841                )
842            },
843        };
844        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
845        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
846        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
847            let mut __guard = __cache.lock().unwrap();
848            *__guard
849                .entry(__key)
850                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
851        };
852        unsafe {
853            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
854            let __f: extern "C" fn(GameObject, *mut M0, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__inflated.method_ptr);
855            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
856            __f(
857                __receiver,
858                ::core::convert::Into::into(component),
859                ::core::option::Option::Some(__mi_opaque),
860            )
861        }
862    }
863    #[doc = "`TryGetComponent(::unity::SystemType, *mutcrate::unity_engine::component::Component)` overload"]
864    fn try_get_component_2(self, r#type: impl ::core::convert::Into<::unity::SystemType>) -> (bool, crate::unity_engine::component::Component) {
865        unsafe {
866            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
867            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::component::Component>::uninit();
868            let __ret = {
869                ::unity::il2cpp_call!((::unity::module_base()+0x2c4e310usize)as*mut u8,bool;
870(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(*mut crate::unity_engine::component::Component)__out_0.as_mut_ptr())
871            };
872            (__ret, __out_0.assume_init())
873        }
874    }
875    #[doc = "`TryGetComponentInternal(::unity::SystemType)` overload"]
876    fn try_get_component_internal(self, r#type: impl ::core::convert::Into<::unity::SystemType>) -> crate::unity_engine::component::Component {
877        unsafe {
878            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
879            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e3d0usize)as*mut u8,crate::unity_engine::component::Component;
880(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
881        }
882    }
883    #[doc = "`TryGetComponentFastPath(::unity::SystemType, ::unity::IntPtr)` overload"]
884    fn try_get_component_fast_path(
885        self,
886        r#type: impl ::core::convert::Into<::unity::SystemType>,
887        one_further_than_result_value: impl ::core::convert::Into<::unity::IntPtr>,
888    ) -> () {
889        unsafe {
890            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
891            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e420usize)as*mut u8,();
892(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(::unity::IntPtr)::core::convert::Into::into(one_further_than_result_value))
893        }
894    }
895    #[doc = "`SendMessageUpwards(::unity::Il2CppString, crate::unity_engine::sendmessageoptions::SendMessageOptions)` overload"]
896    fn send_message_upwards(
897        self,
898        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
899        options: impl ::core::convert::Into<crate::unity_engine::sendmessageoptions::SendMessageOptions>,
900    ) -> () {
901        unsafe {
902            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
903            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e520usize)as*mut u8,();
904(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::unity_engine::sendmessageoptions::SendMessageOptions)::core::convert::Into::into(options))
905        }
906    }
907    #[doc = "`SendMessage(::unity::Il2CppString, crate::unity_engine::sendmessageoptions::SendMessageOptions)` overload"]
908    fn send_message(
909        self,
910        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
911        options: impl ::core::convert::Into<crate::unity_engine::sendmessageoptions::SendMessageOptions>,
912    ) -> () {
913        unsafe {
914            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
915            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e5f0usize)as*mut u8,();
916(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::unity_engine::sendmessageoptions::SendMessageOptions)::core::convert::Into::into(options))
917        }
918    }
919    #[doc = "`BroadcastMessage(::unity::Il2CppString, crate::unity_engine::sendmessageoptions::SendMessageOptions)` overload"]
920    fn broadcast_message(
921        self,
922        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
923        options: impl ::core::convert::Into<crate::unity_engine::sendmessageoptions::SendMessageOptions>,
924    ) -> () {
925        unsafe {
926            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
927            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e6c0usize)as*mut u8,();
928(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::unity_engine::sendmessageoptions::SendMessageOptions)::core::convert::Into::into(options))
929        }
930    }
931    #[doc = "`AddComponentInternal(::unity::Il2CppString)` overload"]
932    fn add_component_internal(self, class_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::component::Component {
933        unsafe {
934            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
935            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e790usize)as*mut u8,crate::unity_engine::component::Component;
936(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(class_name))
937        }
938    }
939    #[doc = "`Internal_AddComponentWithType(::unity::SystemType)` overload"]
940    fn internal_add_component_with_type(
941        self,
942        component_type: impl ::core::convert::Into<::unity::SystemType>,
943    ) -> crate::unity_engine::component::Component {
944        unsafe {
945            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
946            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e7e0usize)as*mut u8,crate::unity_engine::component::Component;
947(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(component_type))
948        }
949    }
950    #[doc = "`AddComponent(::unity::SystemType)` overload"]
951    fn add_component(self, component_type: impl ::core::convert::Into<::unity::SystemType>) -> crate::unity_engine::component::Component {
952        unsafe {
953            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
954            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e830usize)as*mut u8,crate::unity_engine::component::Component;
955(GameObject)__receiver,(::unity::SystemType)::core::convert::Into::into(component_type))
956        }
957    }
958    fn add_component_2<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> M0 {
959        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
960            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<GameObject as ::unity::ClassIdentity>::class(), "AddComponent", 0));
961        #[allow(clippy::type_complexity)]
962        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
963            ::std::sync::OnceLock::new();
964        let _ = false;
965        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
966            ::core::result::Result::Ok(mi) => *mi,
967            ::core::result::Result::Err(e) => {
968                panic!(
969                    "method lookup failed: {}
970::{}
971: {}
972",
973                    <GameObject as ::unity::ClassIdentity>::NAME,
974                    "AddComponent",
975                    e
976                )
977            },
978        };
979        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
980        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
981        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
982            let mut __guard = __cache.lock().unwrap();
983            *__guard
984                .entry(__key)
985                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
986        };
987        unsafe {
988            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
989            let __f: extern "C" fn(GameObject, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
990            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
991            __f(__receiver, ::core::option::Option::Some(__mi_opaque))
992        }
993    }
994    #[doc = "`get_transform()` overload"]
995    fn get_transform(self) -> crate::unity_engine::transform::Transform {
996        unsafe {
997            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
998            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e880usize)as*mut u8,crate::unity_engine::transform::Transform;
999(GameObject)__receiver)
1000        }
1001    }
1002    #[doc = "`get_layer()` overload"]
1003    fn get_layer(self) -> i32 {
1004        unsafe {
1005            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1006            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e8d0usize)as*mut u8,i32;
1007(GameObject)__receiver)
1008        }
1009    }
1010    #[doc = "`set_layer(i32)` overload"]
1011    fn set_layer(self, value: impl ::core::convert::Into<i32>) -> () {
1012        unsafe {
1013            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1014            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e920usize)as*mut u8,();
1015(GameObject)__receiver,(i32)::core::convert::Into::into(value))
1016        }
1017    }
1018    #[doc = "`get_active()` overload"]
1019    fn get_active(self) -> bool {
1020        unsafe {
1021            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1022            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e970usize)as*mut u8,bool;
1023(GameObject)__receiver)
1024        }
1025    }
1026    #[doc = "`set_active(bool)` overload"]
1027    fn set_active(self, value: impl ::core::convert::Into<bool>) -> () {
1028        unsafe {
1029            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1030            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e9c0usize)as*mut u8,();
1031(GameObject)__receiver,(bool)::core::convert::Into::into(value))
1032        }
1033    }
1034    #[doc = "`get_activeSelf()` overload"]
1035    fn get_active_self(self) -> bool {
1036        unsafe {
1037            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1038            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ea60usize)as*mut u8,bool;
1039(GameObject)__receiver)
1040        }
1041    }
1042    #[doc = "`get_activeInHierarchy()` overload"]
1043    fn get_active_in_hierarchy(self) -> bool {
1044        unsafe {
1045            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1046            ::unity::il2cpp_call!((::unity::module_base()+0x2c4eab0usize)as*mut u8,bool;
1047(GameObject)__receiver)
1048        }
1049    }
1050    #[doc = "`SetActiveRecursively(bool)` overload"]
1051    fn set_active_recursively(self, state: impl ::core::convert::Into<bool>) -> () {
1052        unsafe {
1053            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1054            ::unity::il2cpp_call!((::unity::module_base()+0x2c4eb00usize)as*mut u8,();
1055(GameObject)__receiver,(bool)::core::convert::Into::into(state))
1056        }
1057    }
1058    #[doc = "`get_isStatic()` overload"]
1059    fn get_is_static(self) -> bool {
1060        unsafe {
1061            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1062            ::unity::il2cpp_call!((::unity::module_base()+0x2c4eb50usize)as*mut u8,bool;
1063(GameObject)__receiver)
1064        }
1065    }
1066    #[doc = "`set_isStatic(bool)` overload"]
1067    fn set_is_static(self, value: impl ::core::convert::Into<bool>) -> () {
1068        unsafe {
1069            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1070            ::unity::il2cpp_call!((::unity::module_base()+0x2c4eba0usize)as*mut u8,();
1071(GameObject)__receiver,(bool)::core::convert::Into::into(value))
1072        }
1073    }
1074    #[doc = "`get_isStaticBatchable()` overload"]
1075    fn get_is_static_batchable(self) -> bool {
1076        unsafe {
1077            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1078            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ebf0usize)as*mut u8,bool;
1079(GameObject)__receiver)
1080        }
1081    }
1082    #[doc = "`get_tag()` overload"]
1083    fn get_tag(self) -> ::unity::Il2CppString {
1084        unsafe {
1085            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1086            ::unity::il2cpp_call!((::unity::module_base()+0x2c46920usize)as*mut u8, ::unity::Il2CppString;
1087(GameObject)__receiver)
1088        }
1089    }
1090    #[doc = "`set_tag(::unity::Il2CppString)` overload"]
1091    fn set_tag(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
1092        unsafe {
1093            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1094            ::unity::il2cpp_call!((::unity::module_base()+0x2c469f0usize)as*mut u8,();
1095(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
1096        }
1097    }
1098    #[doc = "`CompareTag(::unity::Il2CppString)` overload"]
1099    fn compare_tag(self, tag: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
1100        unsafe {
1101            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1102            ::unity::il2cpp_call!((::unity::module_base()+0x2c46ac0usize)as*mut u8,bool;
1103(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(tag))
1104        }
1105    }
1106    #[doc = "`SendMessageUpwards(::unity::Il2CppString, crate::system::object::Object, crate::unity_engine::sendmessageoptions::SendMessageOptions)` overload"]
1107    fn send_message_upwards_2(
1108        self,
1109        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
1110        value: impl ::core::convert::Into<crate::system::object::Object>,
1111        options: impl ::core::convert::Into<crate::unity_engine::sendmessageoptions::SendMessageOptions>,
1112    ) -> () {
1113        unsafe {
1114            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1115            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e580usize)as*mut u8,();
1116(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::system::object::Object)::core::convert::Into::into(value),(crate::unity_engine::sendmessageoptions::SendMessageOptions)::core::convert::Into::into(options))
1117        }
1118    }
1119    #[doc = "`SendMessageUpwards(::unity::Il2CppString, crate::system::object::Object)` overload"]
1120    fn send_message_upwards_3(
1121        self,
1122        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
1123        value: impl ::core::convert::Into<crate::system::object::Object>,
1124    ) -> () {
1125        unsafe {
1126            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1127            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ec90usize)as*mut u8,();
1128(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::system::object::Object)::core::convert::Into::into(value))
1129        }
1130    }
1131    #[doc = "`SendMessageUpwards(::unity::Il2CppString)` overload"]
1132    fn send_message_upwards_4(self, method_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
1133        unsafe {
1134            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1135            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ecf0usize)as*mut u8,();
1136(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name))
1137        }
1138    }
1139    #[doc = "`SendMessage(::unity::Il2CppString, crate::system::object::Object, crate::unity_engine::sendmessageoptions::SendMessageOptions)` overload"]
1140    fn send_message_2(
1141        self,
1142        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
1143        value: impl ::core::convert::Into<crate::system::object::Object>,
1144        options: impl ::core::convert::Into<crate::unity_engine::sendmessageoptions::SendMessageOptions>,
1145    ) -> () {
1146        unsafe {
1147            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1148            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e650usize)as*mut u8,();
1149(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::system::object::Object)::core::convert::Into::into(value),(crate::unity_engine::sendmessageoptions::SendMessageOptions)::core::convert::Into::into(options))
1150        }
1151    }
1152    #[doc = "`SendMessage(::unity::Il2CppString, crate::system::object::Object)` overload"]
1153    fn send_message_3(
1154        self,
1155        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
1156        value: impl ::core::convert::Into<crate::system::object::Object>,
1157    ) -> () {
1158        unsafe {
1159            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1160            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ed50usize)as*mut u8,();
1161(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::system::object::Object)::core::convert::Into::into(value))
1162        }
1163    }
1164    #[doc = "`SendMessage(::unity::Il2CppString)` overload"]
1165    fn send_message_4(self, method_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
1166        unsafe {
1167            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1168            ::unity::il2cpp_call!((::unity::module_base()+0x2c4edb0usize)as*mut u8,();
1169(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name))
1170        }
1171    }
1172    #[doc = "`BroadcastMessage(::unity::Il2CppString, crate::system::object::Object, crate::unity_engine::sendmessageoptions::SendMessageOptions)` overload"]
1173    fn broadcast_message_2(
1174        self,
1175        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
1176        parameter: impl ::core::convert::Into<crate::system::object::Object>,
1177        options: impl ::core::convert::Into<crate::unity_engine::sendmessageoptions::SendMessageOptions>,
1178    ) -> () {
1179        unsafe {
1180            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1181            ::unity::il2cpp_call!((::unity::module_base()+0x2c4e720usize)as*mut u8,();
1182(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::system::object::Object)::core::convert::Into::into(parameter),(crate::unity_engine::sendmessageoptions::SendMessageOptions)::core::convert::Into::into(options))
1183        }
1184    }
1185    #[doc = "`BroadcastMessage(::unity::Il2CppString, crate::system::object::Object)` overload"]
1186    fn broadcast_message_3(
1187        self,
1188        method_name: impl ::core::convert::Into<::unity::Il2CppString>,
1189        parameter: impl ::core::convert::Into<crate::system::object::Object>,
1190    ) -> () {
1191        unsafe {
1192            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1193            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ee10usize)as*mut u8,();
1194(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name),(crate::system::object::Object)::core::convert::Into::into(parameter))
1195        }
1196    }
1197    #[doc = "`BroadcastMessage(::unity::Il2CppString)` overload"]
1198    fn broadcast_message_4(self, method_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
1199        unsafe {
1200            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1201            ::unity::il2cpp_call!((::unity::module_base()+0x2c4ee70usize)as*mut u8,();
1202(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(method_name))
1203        }
1204    }
1205    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
1206    fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
1207        unsafe {
1208            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1209            ::unity::il2cpp_call!((::unity::module_base()+0x2c4eed0usize)as*mut u8,();
1210(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
1211        }
1212    }
1213    #[doc = "`.ctor()` overload"]
1214    fn ctor_2(self) -> () {
1215        unsafe {
1216            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1217            ::unity::il2cpp_call!((::unity::module_base()+0x2c4efc0usize)as*mut u8,();
1218(GameObject)__receiver)
1219        }
1220    }
1221    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<::unity::SystemType>)` overload"]
1222    fn ctor_3(
1223        self,
1224        name: impl ::core::convert::Into<::unity::Il2CppString>,
1225        components: impl ::core::convert::Into<::unity::Array<::unity::SystemType>>,
1226    ) -> () {
1227        unsafe {
1228            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1229            ::unity::il2cpp_call!((::unity::module_base()+0x2c4f060usize)as*mut u8,();
1230(GameObject)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Array< ::unity::SystemType>)::core::convert::Into::into(components))
1231        }
1232    }
1233    #[doc = "`get_scene()` overload"]
1234    fn get_scene(self) -> crate::unity_engine::scene_management::scene::Scene {
1235        unsafe {
1236            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1237            ::unity::il2cpp_call!((::unity::module_base()+0x2c4f1e0usize)as*mut u8,crate::unity_engine::scene_management::scene::Scene;
1238(GameObject)__receiver)
1239        }
1240    }
1241    #[doc = "`get_sceneCullingMask()` overload"]
1242    fn get_scene_culling_mask(self) -> u64 {
1243        unsafe {
1244            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1245            ::unity::il2cpp_call!((::unity::module_base()+0x2c4f290usize)as*mut u8,u64;
1246(GameObject)__receiver)
1247        }
1248    }
1249    #[doc = "`get_gameObject()` overload"]
1250    fn get_game_object(self) -> crate::unity_engine::gameobject::GameObject {
1251        unsafe {
1252            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1253            ::unity::il2cpp_call!((::unity::module_base()+0x2c4f2e0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
1254(GameObject)__receiver)
1255        }
1256    }
1257    #[doc = "`get_scene_Injected(*mutcrate::unity_engine::scene_management::scene::Scene)` overload"]
1258    fn get_scene_injected(self) -> crate::unity_engine::scene_management::scene::Scene {
1259        unsafe {
1260            let __receiver = <GameObject as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1261            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::scene_management::scene::Scene>::uninit();
1262            ::unity::il2cpp_call!((::unity::module_base()+0x2c4f240usize)as*mut u8,();
1263(GameObject)__receiver,(*mut crate::unity_engine::scene_management::scene::Scene)__out_0.as_mut_ptr());
1264            __out_0.assume_init()
1265        }
1266    }
1267}
1268
1269#[cfg(feature = "unity_engine-gameobject")]
1270impl<__T: IGameObject> IGameObjectMethods for __T {}
1271
1272#[cfg(feature = "unity_engine-gameobject")]
1273impl GameObject {
1274    pub fn create_primitive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1276    }
1277
1278    pub fn get_component_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1280    }
1281
1282    pub fn get_component_fast_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1284    }
1285
1286    pub fn get_component_by_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1288    }
1289
1290    pub fn get_component_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
1292    }
1293
1294    pub fn get_component_in_children_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1295        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1296    }
1297
1298    pub fn get_component_in_children_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1299        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
1300    }
1301
1302    pub fn get_component_in_parent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1303        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
1304    }
1305
1306    pub fn get_component_in_parent_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1307        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1308    }
1309
1310    pub fn get_components_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1312    }
1313
1314    pub fn get_components_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1316    }
1317
1318    pub fn get_components_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1319        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1320    }
1321
1322    pub fn get_components_in_children_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1323        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1324    }
1325
1326    pub fn get_components_in_children_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1327        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1328    }
1329
1330    pub fn get_components_in_parent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1331        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1332    }
1333
1334    pub fn get_components_in_parent_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1336    }
1337
1338    pub fn try_get_component_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1340    }
1341
1342    pub fn try_get_component_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1344    }
1345
1346    pub fn try_get_component_fast_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1348    }
1349
1350    pub fn find_with_tag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1351        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1352    }
1353
1354    pub fn send_message_upwards_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1355        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
1356    }
1357
1358    pub fn send_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1359        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
1360    }
1361
1362    pub fn broadcast_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1363        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
1364    }
1365
1366    pub fn add_component_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1367        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
1368    }
1369
1370    pub fn internal_add_component_with_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1371        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
1372    }
1373
1374    pub fn add_component_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1375        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
1376    }
1377
1378    pub fn get_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1379        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
1380    }
1381
1382    pub fn get_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1383        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
1384    }
1385
1386    pub fn set_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1387        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
1388    }
1389
1390    pub fn get_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1391        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
1392    }
1393
1394    pub fn set_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1395        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
1396    }
1397
1398    pub fn get_active_self_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1399        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
1400    }
1401
1402    pub fn get_active_in_hierarchy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1403        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
1404    }
1405
1406    pub fn set_active_recursively_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
1408    }
1409
1410    pub fn get_is_static_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1411        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
1412    }
1413
1414    pub fn set_is_static_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1415        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
1416    }
1417
1418    pub fn get_is_static_batchable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1419        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
1420    }
1421
1422    pub fn get_tag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1423        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
1424    }
1425
1426    pub fn set_tag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1427        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
1428    }
1429
1430    pub fn compare_tag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1431        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
1432    }
1433
1434    pub fn find_game_object_with_tag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1435        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
1436    }
1437
1438    pub fn find_game_objects_with_tag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1439        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
1440    }
1441
1442    pub fn send_message_upwards_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1443        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
1444    }
1445
1446    pub fn send_message_upwards_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1447        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[60]
1448    }
1449
1450    pub fn send_message_upwards_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1451        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[61]
1452    }
1453
1454    pub fn send_message_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1455        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[62]
1456    }
1457
1458    pub fn send_message_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1459        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[63]
1460    }
1461
1462    pub fn send_message_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1463        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[64]
1464    }
1465
1466    pub fn broadcast_message_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1467        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[65]
1468    }
1469
1470    pub fn broadcast_message_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1471        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[66]
1472    }
1473
1474    pub fn broadcast_message_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1475        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[67]
1476    }
1477
1478    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1479        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[68]
1480    }
1481
1482    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1483        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[69]
1484    }
1485
1486    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1487        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[70]
1488    }
1489
1490    pub fn internal_create_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1491        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[71]
1492    }
1493
1494    pub fn find_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1495        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[72]
1496    }
1497
1498    pub fn get_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1499        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[73]
1500    }
1501
1502    pub fn get_scene_culling_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1503        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[74]
1504    }
1505
1506    pub fn get_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1507        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[75]
1508    }
1509
1510    pub fn get_scene_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1511        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[76]
1512    }
1513}
1514
1515#[cfg(feature = "unity_engine-gameobject")]
1516impl GameObject {
1517    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
1518    pub fn new(name: ::unity::Il2CppString) -> Self {
1519        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1520            panic!(
1521                "{}
1522::{}
1523 failed to instantiate",
1524                ::core::stringify!(GameObject),
1525                ::core::stringify!(new),
1526            )
1527        });
1528        <Self as IGameObjectMethods>::ctor(this, name);
1529        this
1530    }
1531
1532    #[doc = "`.ctor()` — no args"]
1533    pub fn new_2() -> Self {
1534        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1535            panic!(
1536                "{}
1537::{}
1538 failed to instantiate",
1539                ::core::stringify!(GameObject),
1540                ::core::stringify!(new_2),
1541            )
1542        });
1543        <Self as IGameObjectMethods>::ctor_2(this);
1544        this
1545    }
1546
1547    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Array<::unity::SystemType>)` — overload selector"]
1548    pub fn new_3(name: ::unity::Il2CppString, components: ::unity::Array<::unity::SystemType>) -> Self {
1549        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1550            panic!(
1551                "{}
1552::{}
1553 failed to instantiate",
1554                ::core::stringify!(GameObject),
1555                ::core::stringify!(new_3),
1556            )
1557        });
1558        <Self as IGameObjectMethods>::ctor_3(this, name, components);
1559        this
1560    }
1561}
1562
1563#[cfg(feature = "unity_engine-gameobject")]
1564#[doc(hidden)]
1565pub mod prelude {
1566    pub use super::{GameObject, IGameObject, IGameObjectMethods};
1567    #[cfg(feature = "system-object")]
1568    pub use crate::system::object::IObjectMethods;
1569    #[cfg(feature = "unity_engine-object_2")]
1570    pub use crate::unity_engine::object_2::IObject_2Methods;
1571    pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
1572}