1#[cfg(feature = "app-keyhelp-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
10 system::{
11 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/keyhelp/KeyHelp_UI.md"))]
18 #[::unity::class(namespace = "App", name = "KeyHelp.UI")]
19 #[parent(crate::system::object::Object)]
20 pub struct KeyHelp_UI {
21 #[static_field]
22 #[rename(name = "PrefabPath")]
23 pub prefab_path: ::unity::Il2CppString,
24 #[static_field]
25 #[rename(name = "ElementNames")]
26 pub element_names: ::unity::Array<::unity::Il2CppString>,
27 #[offset(16)]
28 #[rename(name = "m_PrefabHandle")]
29 pub m_prefab_handle: crate::app::tresourcehandle_1::TResourceHandle_1<crate::unity_engine::gameobject::GameObject>,
30 #[offset(24)]
31 #[rename(name = "m_GameObject")]
32 pub m_game_object: crate::unity_engine::gameobject::GameObject,
33 #[offset(32)]
34 #[rename(name = "m_Elements")]
35 pub m_elements: crate::system::collections::generic::dictionary_2::Dictionary_2<
36 crate::app::keyhelp::KeyHelp_Type,
37 crate::app::keyhelp::KeyHelp_UI_Element,
38 >,
39 #[offset(40)]
40 #[rename(name = "m_Index")]
41 pub m_index: i32,
42 }
43
44 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/keyhelp/KeyHelp_Type.md"))]
45 #[repr(C)]
46 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
47 pub struct KeyHelp_Type {
48 pub value: i32,
49 }
50 impl ::unity::ClassIdentity for KeyHelp_Type {
51 const NAME: &'static str = "KeyHelp.Type";
52 const NAMESPACE: &'static str = "App";
53
54 fn class() -> ::unity::Class {
55 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
56 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
57 }
58 }
59 impl ::unity::IlType for KeyHelp_Type {
60 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
61 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
62 }
63 }
64 impl KeyHelp_Type {
65 pub fn a() -> Self {
66 Self { value: 0 }
67 }
68
69 pub fn b() -> Self {
70 Self { value: 1 }
71 }
72
73 pub fn x() -> Self {
74 Self { value: 2 }
75 }
76
77 pub fn y() -> Self {
78 Self { value: 3 }
79 }
80
81 pub fn l() -> Self {
82 Self { value: 4 }
83 }
84
85 pub fn r() -> Self {
86 Self { value: 5 }
87 }
88
89 pub fn lr() -> Self {
90 Self { value: 6 }
91 }
92
93 pub fn zl() -> Self {
94 Self { value: 7 }
95 }
96
97 pub fn zr() -> Self {
98 Self { value: 8 }
99 }
100
101 pub fn plus() -> Self {
102 Self { value: 9 }
103 }
104
105 pub fn minus() -> Self {
106 Self { value: 10 }
107 }
108
109 pub fn num() -> Self {
110 Self { value: 11 }
111 }
112 }
113
114 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/keyhelp/KeyHelp.md"))]
115 #[::unity::class(namespace = "App", name = "KeyHelp")]
116 #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::keyhelp::KeyHelp>)]
117 pub struct KeyHelp {
118 #[offset(32)]
119 #[rename(name = "m_UI")]
120 pub m_ui: crate::app::keyhelp::KeyHelp_UI,
121 }
122
123 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/keyhelp/KeyHelp_UI_Element.md"))]
124 #[::unity::class(namespace = "App", name = "KeyHelp.UI.Element")]
125 #[parent(crate::system::object::Object)]
126 pub struct KeyHelp_UI_Element {
127 #[offset(16)]
128 #[rename(name = "m_Root")]
129 pub m_root: crate::unity_engine::gameobject::GameObject,
130 #[offset(24)]
131 #[rename(name = "m_Text")]
132 pub m_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
133 }
134}
135
136#[cfg(feature = "app-keyhelp-types")]
137pub use __types::*;
138
139#[cfg(feature = "app-keyhelp")]
140impl KeyHelp_UI {
141 #[doc = "`.cctor()` overload"]
142 pub fn cctor() -> () {
143 unsafe {
144 ::unity::il2cpp_call!((::unity::module_base()+0x1fd3d10usize)as*mut u8,();
145 )
146 }
147 }
148}
149
150#[cfg(feature = "app-keyhelp")]
151pub trait IKeyHelp_UIMethods: IKeyHelp_UI {
152 #[doc = "`.ctor()` overload"]
153 fn ctor(self) -> () {
154 unsafe {
155 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x1fd32f0usize)as*mut u8,();
157(KeyHelp_UI)__receiver)
158 }
159 }
160 #[doc = "`CreateAsync()` overload"]
161 fn create_async(self) -> () {
162 unsafe {
163 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x1fd3390usize)as*mut u8,();
165(KeyHelp_UI)__receiver)
166 }
167 }
168 #[doc = "`IsCreating()` overload"]
169 fn is_creating(self) -> bool {
170 unsafe {
171 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x1fd34d0usize)as*mut u8,bool;
173(KeyHelp_UI)__receiver)
174 }
175 }
176 #[doc = "`Destroy()` overload"]
177 fn destroy(self) -> () {
178 unsafe {
179 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x1fd3500usize)as*mut u8,();
181(KeyHelp_UI)__receiver)
182 }
183 }
184 #[doc = "`SetVisible(bool)` overload"]
185 fn set_visible(self, is_visible: impl ::core::convert::Into<bool>) -> () {
186 unsafe {
187 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x1fd35f0usize)as*mut u8,();
189(KeyHelp_UI)__receiver,(bool)::core::convert::Into::into(is_visible))
190 }
191 }
192 #[doc = "`Add(crate::app::keyhelp::KeyHelp_Type, ::unity::Il2CppString)` overload"]
193 fn add(
194 self,
195 r#type: impl ::core::convert::Into<crate::app::keyhelp::KeyHelp_Type>,
196 text: impl ::core::convert::Into<::unity::Il2CppString>,
197 ) -> () {
198 unsafe {
199 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x1fd36a0usize)as*mut u8,();
201(KeyHelp_UI)__receiver,(crate::app::keyhelp::KeyHelp_Type)::core::convert::Into::into(r#type),(::unity::Il2CppString)::core::convert::Into::into(text))
202 }
203 }
204 #[doc = "`Add(::unity::Il2CppString)` overload"]
205 fn add_2(self, key_help_id: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
206 unsafe {
207 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x1fd37a0usize)as*mut u8,();
209(KeyHelp_UI)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key_help_id))
210 }
211 }
212 #[doc = "`Clear()` overload"]
213 fn clear(self) -> () {
214 unsafe {
215 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x1fd3870usize)as*mut u8,();
217(KeyHelp_UI)__receiver)
218 }
219 }
220 #[doc = "`CreateImpl()` overload"]
221 fn create_impl(self) -> () {
222 unsafe {
223 let __receiver = <KeyHelp_UI as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x1fd3a50usize)as*mut u8,();
225(KeyHelp_UI)__receiver)
226 }
227 }
228}
229
230#[cfg(feature = "app-keyhelp")]
231impl<__T: IKeyHelp_UI> IKeyHelp_UIMethods for __T {}
232
233#[cfg(feature = "app-keyhelp")]
234impl KeyHelp_UI {
235 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
237 }
238
239 pub fn create_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
241 }
242
243 pub fn is_creating_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
245 }
246
247 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
249 }
250
251 pub fn set_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
253 }
254
255 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
257 }
258
259 pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
261 }
262
263 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
265 }
266
267 pub fn create_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
269 }
270
271 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
273 }
274}
275
276#[cfg(feature = "app-keyhelp")]
277impl KeyHelp_UI {
278 #[doc = "`.ctor()` — no args"]
279 pub fn new() -> Self {
280 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
281 panic!(
282 "{}
283::{}
284 failed to instantiate",
285 ::core::stringify!(KeyHelp_UI),
286 ::core::stringify!(new),
287 )
288 });
289 <Self as IKeyHelp_UIMethods>::ctor(this);
290 this
291 }
292}
293
294#[cfg(feature = "app-keyhelp")]
295impl KeyHelp {
296 #[doc = "`IsCreating()` overload"]
297 pub fn is_creating() -> bool {
298 unsafe {
299 ::unity::il2cpp_call!((::unity::module_base()+0x1bd8fe0usize)as*mut u8,bool;
300 )
301 }
302 }
303
304 #[doc = "`SetVisible(bool)` overload"]
305 pub fn set_visible(is_visible: impl ::core::convert::Into<bool>) -> () {
306 unsafe {
307 ::unity::il2cpp_call!((::unity::module_base()+0x1bd90a0usize)as*mut u8,();
308(bool)::core::convert::Into::into(is_visible))
309 }
310 }
311
312 #[doc = "`Add(crate::app::keyhelp::KeyHelp_Type, ::unity::Il2CppString)` overload"]
313 pub fn add(r#type: impl ::core::convert::Into<crate::app::keyhelp::KeyHelp_Type>, text: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
314 unsafe {
315 ::unity::il2cpp_call!((::unity::module_base()+0x1bd9170usize)as*mut u8,();
316(crate::app::keyhelp::KeyHelp_Type)::core::convert::Into::into(r#type),(::unity::Il2CppString)::core::convert::Into::into(text))
317 }
318 }
319
320 #[doc = "`Add(::unity::Il2CppString)` overload"]
321 pub fn add_2(key_help_id: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
322 unsafe {
323 ::unity::il2cpp_call!((::unity::module_base()+0x1bd9250usize)as*mut u8,();
324(::unity::Il2CppString)::core::convert::Into::into(key_help_id))
325 }
326 }
327
328 #[doc = "`Clear()` overload"]
329 pub fn clear() -> () {
330 unsafe {
331 ::unity::il2cpp_call!((::unity::module_base()+0x1bd9320usize)as*mut u8,();
332 )
333 }
334 }
335}
336
337#[cfg(feature = "app-keyhelp")]
338pub trait IKeyHelpMethods: IKeyHelp {
339 #[doc = "`OnCreate()` overload"]
340 fn on_create(self) -> () {
341 unsafe {
342 let __receiver = <KeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
343 {
344 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
345 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
346 panic!(
347 "unity: virtual slot {}
348 out of range (vtable len {}
349) on the runtime class behind {}
350 (method `{}
351`)",
352 5usize,
353 __vt.len(),
354 <KeyHelp as ::unity::ClassIdentity>::NAME,
355 "OnCreate",
356 )
357 });
358 let __inner: extern "C" fn(KeyHelp, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
359 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
360 __inner(__receiver, __mi)
361 }
362 }
363 }
364 #[doc = "`OnDispose()` overload"]
365 fn on_dispose(self) -> () {
366 unsafe {
367 let __receiver = <KeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 {
369 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
370 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
371 panic!(
372 "unity: virtual slot {}
373 out of range (vtable len {}
374) on the runtime class behind {}
375 (method `{}
376`)",
377 6usize,
378 __vt.len(),
379 <KeyHelp as ::unity::ClassIdentity>::NAME,
380 "OnDispose",
381 )
382 });
383 let __inner: extern "C" fn(KeyHelp, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
384 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
385 __inner(__receiver, __mi)
386 }
387 }
388 }
389 #[doc = "`.ctor()` overload"]
390 fn ctor(self) -> () {
391 unsafe {
392 let __receiver = <KeyHelp as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393 ::unity::il2cpp_call!((::unity::module_base()+0x1bd94c0usize)as*mut u8,();
394(KeyHelp)__receiver)
395 }
396 }
397}
398
399#[cfg(feature = "app-keyhelp")]
400impl<__T: IKeyHelp> IKeyHelpMethods for __T {}
401
402#[cfg(feature = "app-keyhelp")]
403impl KeyHelp {
404 pub fn is_creating_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
406 }
407
408 pub fn set_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
410 }
411
412 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
414 }
415
416 pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
418 }
419
420 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
422 }
423
424 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
426 }
427
428 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
430 }
431
432 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
434 }
435}
436
437#[cfg(feature = "app-keyhelp")]
438impl KeyHelp {
439 #[doc = "Direct (non-virtual) call to `KeyHelp`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
440 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
441 let __mi = Self::on_create_method_info();
442 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
443 __inner(this.into(), ::core::option::Option::None)
444 }
445
446 #[doc = "Direct (non-virtual) call to `KeyHelp`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
447 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
448 let __mi = Self::on_dispose_method_info();
449 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
450 __inner(this.into(), ::core::option::Option::None)
451 }
452}
453
454#[cfg(feature = "app-keyhelp")]
455impl KeyHelp {
456 #[doc = "`.ctor()` — no args"]
457 pub fn new() -> Self {
458 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
459 panic!(
460 "{}
461::{}
462 failed to instantiate",
463 ::core::stringify!(KeyHelp),
464 ::core::stringify!(new),
465 )
466 });
467 <Self as IKeyHelpMethods>::ctor(this);
468 this
469 }
470}
471
472#[cfg(feature = "app-keyhelp")]
473pub trait IKeyHelp_UI_ElementMethods: IKeyHelp_UI_Element {
474 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject)` overload"]
475 fn ctor(self, root: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
476 unsafe {
477 let __receiver = <KeyHelp_UI_Element as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
478 ::unity::il2cpp_call!((::unity::module_base()+0x1b67590usize)as*mut u8,();
479(KeyHelp_UI_Element)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(root))
480 }
481 }
482 #[doc = "`SetVisible(bool)` overload"]
483 fn set_visible(self, is_visible: impl ::core::convert::Into<bool>) -> () {
484 unsafe {
485 let __receiver = <KeyHelp_UI_Element as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
486 ::unity::il2cpp_call!((::unity::module_base()+0x1b67630usize)as*mut u8,();
487(KeyHelp_UI_Element)__receiver,(bool)::core::convert::Into::into(is_visible))
488 }
489 }
490 #[doc = "`SetIndex(i32)` overload"]
491 fn set_index(self, index: impl ::core::convert::Into<i32>) -> () {
492 unsafe {
493 let __receiver = <KeyHelp_UI_Element as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
494 ::unity::il2cpp_call!((::unity::module_base()+0x1b67640usize)as*mut u8,();
495(KeyHelp_UI_Element)__receiver,(i32)::core::convert::Into::into(index))
496 }
497 }
498 #[doc = "`SetText(::unity::Il2CppString)` overload"]
499 fn set_text(self, text: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
500 unsafe {
501 let __receiver = <KeyHelp_UI_Element as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
502 ::unity::il2cpp_call!((::unity::module_base()+0x1b67670usize)as*mut u8,();
503(KeyHelp_UI_Element)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text))
504 }
505 }
506}
507
508#[cfg(feature = "app-keyhelp")]
509impl<__T: IKeyHelp_UI_Element> IKeyHelp_UI_ElementMethods for __T {}
510
511#[cfg(feature = "app-keyhelp")]
512impl KeyHelp_UI_Element {
513 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
515 }
516
517 pub fn set_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
519 }
520
521 pub fn set_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
523 }
524
525 pub fn set_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
527 }
528}
529
530#[cfg(feature = "app-keyhelp")]
531impl KeyHelp_UI_Element {
532 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject)` — overload selector"]
533 pub fn new(root: crate::unity_engine::gameobject::GameObject) -> Self {
534 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
535 panic!(
536 "{}
537::{}
538 failed to instantiate",
539 ::core::stringify!(KeyHelp_UI_Element),
540 ::core::stringify!(new),
541 )
542 });
543 <Self as IKeyHelp_UI_ElementMethods>::ctor(this, root);
544 this
545 }
546}
547
548#[cfg(feature = "app-keyhelp")]
549#[doc(hidden)]
550pub mod prelude {
551 pub use super::{
552 IKeyHelp, IKeyHelpMethods, IKeyHelp_UI, IKeyHelp_UIMethods, IKeyHelp_UI_Element, IKeyHelp_UI_ElementMethods, KeyHelp, KeyHelp_Type,
553 KeyHelp_UI, KeyHelp_UI_Element,
554 };
555 #[cfg(feature = "app-singletonclass_1")]
556 pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
557 #[cfg(feature = "system-object")]
558 pub use crate::system::object::IObjectMethods;
559 #[cfg(feature = "system-enum")]
560 pub use crate::system::r#enum::IEnumMethods;
561 #[cfg(feature = "system-valuetype")]
562 pub use crate::system::valuetype::IValueTypeMethods;
563 pub use crate::{
564 app::singletonclass_1::ISingletonClass_1,
565 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
566 };
567}