engage/generated/unity_engine/rendering/ui/
debuguiprefabbundle.rs1#[cfg(feature = "unity_engine-rendering-ui-debuguiprefabbundle-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ui/debuguiprefabbundle/DebugUIPrefabBundle.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIPrefabBundle")]
12 #[parent(crate::system::object::Object)]
13 pub struct DebugUIPrefabBundle {
14 #[offset(16)]
15 #[rename(name = "type")]
16 pub r#type: ::unity::Il2CppString,
17 #[offset(24)]
18 #[rename(name = "prefab")]
19 pub prefab: crate::unity_engine::recttransform::RectTransform,
20 }
21}
22
23#[cfg(feature = "unity_engine-rendering-ui-debuguiprefabbundle-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-rendering-ui-debuguiprefabbundle")]
27pub trait IDebugUIPrefabBundleMethods: IDebugUIPrefabBundle {
28 #[doc = "`.ctor()` overload"]
29 fn ctor(self) -> () {
30 unsafe {
31 let __receiver = <DebugUIPrefabBundle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x30a8fc0usize)as*mut u8,();
33(DebugUIPrefabBundle)__receiver)
34 }
35 }
36}
37
38#[cfg(feature = "unity_engine-rendering-ui-debuguiprefabbundle")]
39impl<__T: IDebugUIPrefabBundle> IDebugUIPrefabBundleMethods for __T {}
40
41#[cfg(feature = "unity_engine-rendering-ui-debuguiprefabbundle")]
42impl DebugUIPrefabBundle {
43 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
44 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
45 }
46}
47
48#[cfg(feature = "unity_engine-rendering-ui-debuguiprefabbundle")]
49impl DebugUIPrefabBundle {
50 #[doc = "`.ctor()` — no args"]
51 pub fn new() -> Self {
52 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
53 panic!(
54 "{}
55::{}
56 failed to instantiate",
57 ::core::stringify!(DebugUIPrefabBundle),
58 ::core::stringify!(new),
59 )
60 });
61 <Self as IDebugUIPrefabBundleMethods>::ctor(this);
62 this
63 }
64}
65
66#[cfg(feature = "unity_engine-rendering-ui-debuguiprefabbundle")]
67#[doc(hidden)]
68pub mod prelude {
69 pub use super::{DebugUIPrefabBundle, IDebugUIPrefabBundle, IDebugUIPrefabBundleMethods};
70 pub use crate::system::object::IObject;
71 #[cfg(feature = "system-object")]
72 pub use crate::system::object::IObjectMethods;
73}