engage/generated/app/
debuglodvisualizer.rs1#[cfg(feature = "app-debuglodvisualizer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debuglodvisualizer/DebugLodVisualizer.md"))]
20 #[::unity::class(namespace = "App", name = "DebugLodVisualizer")]
21 #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::debuglodvisualizer::DebugLodVisualizer>)]
22 pub struct DebugLodVisualizer {
23 #[offset(32)]
24 #[rename(name = "m_Shader")]
25 pub m_shader: crate::unity_engine::shader::Shader,
26 #[offset(40)]
27 #[rename(name = "m_Backup")]
28 pub m_backup: crate::system::collections::generic::dictionary_2::Dictionary_2<
29 crate::unity_engine::renderer::Renderer,
30 ::unity::Array<crate::unity_engine::material::Material>,
31 >,
32 #[offset(48)]
33 #[rename(name = "m_LodIndexProp")]
34 pub m_lod_index_prop: i32,
35 }
36}
37
38#[cfg(feature = "app-debuglodvisualizer-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-debuglodvisualizer")]
42pub trait IDebugLodVisualizerMethods: IDebugLodVisualizer {
43 #[doc = "`GetMaterials(crate::unity_engine::renderer::Renderer)` overload"]
44 fn get_materials(
45 self,
46 render: impl ::core::convert::Into<crate::unity_engine::renderer::Renderer>,
47 ) -> ::unity::Array<crate::unity_engine::material::Material> {
48 unsafe {
49 let __receiver = <DebugLodVisualizer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x2a04e60usize)as*mut u8, ::unity::Array<crate::unity_engine::material::Material> ;
51(DebugLodVisualizer)__receiver,(crate::unity_engine::renderer::Renderer)::core::convert::Into::into(render))
52 }
53 }
54 #[doc = "`SetMaterials(crate::unity_engine::renderer::Renderer, ::unity::Array<crate::unity_engine::material::Material>)` overload"]
55 fn set_materials(
56 self,
57 render: impl ::core::convert::Into<crate::unity_engine::renderer::Renderer>,
58 materials: impl ::core::convert::Into<::unity::Array<crate::unity_engine::material::Material>>,
59 ) -> () {
60 unsafe {
61 let __receiver = <DebugLodVisualizer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x2a04f00usize)as*mut u8,();
63(DebugLodVisualizer)__receiver,(crate::unity_engine::renderer::Renderer)::core::convert::Into::into(render),(::unity::Array<crate::unity_engine::material::Material>)::core::convert::Into::into(materials))
64 }
65 }
66 #[doc = "`CompareRenderers(::unity::Array<crate::unity_engine::renderer::Renderer>, ::unity::Array<crate::unity_engine::renderer::Renderer>)` overload"]
67 fn compare_renderers(
68 self,
69 a: impl ::core::convert::Into<::unity::Array<crate::unity_engine::renderer::Renderer>>,
70 b: impl ::core::convert::Into<::unity::Array<crate::unity_engine::renderer::Renderer>>,
71 ) -> bool {
72 unsafe {
73 let __receiver = <DebugLodVisualizer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x2a04fb0usize)as*mut u8,bool;
75(DebugLodVisualizer)__receiver,(::unity::Array<crate::unity_engine::renderer::Renderer>)::core::convert::Into::into(a),(::unity::Array<crate::unity_engine::renderer::Renderer>)::core::convert::Into::into(b))
76 }
77 }
78 #[doc = "`OnEnable()` overload"]
79 fn on_enable(self) -> () {
80 unsafe {
81 let __receiver = <DebugLodVisualizer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x2a051d0usize)as*mut u8,();
83(DebugLodVisualizer)__receiver)
84 }
85 }
86 #[doc = "`OnDisable()` overload"]
87 fn on_disable(self) -> () {
88 unsafe {
89 let __receiver = <DebugLodVisualizer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x2a05750usize)as*mut u8,();
91(DebugLodVisualizer)__receiver)
92 }
93 }
94 #[doc = "`.ctor()` overload"]
95 fn ctor(self) -> () {
96 unsafe {
97 let __receiver = <DebugLodVisualizer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x2a05930usize)as*mut u8,();
99(DebugLodVisualizer)__receiver)
100 }
101 }
102}
103
104#[cfg(feature = "app-debuglodvisualizer")]
105impl<__T: IDebugLodVisualizer> IDebugLodVisualizerMethods for __T {}
106
107#[cfg(feature = "app-debuglodvisualizer")]
108impl DebugLodVisualizer {
109 pub fn get_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
111 }
112
113 pub fn set_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
115 }
116
117 pub fn compare_renderers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
119 }
120
121 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
123 }
124
125 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
127 }
128
129 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
131 }
132}
133
134#[cfg(feature = "app-debuglodvisualizer")]
135impl DebugLodVisualizer {
136 #[doc = "`.ctor()` — no args"]
137 pub fn new() -> Self {
138 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
139 panic!(
140 "{}
141::{}
142 failed to instantiate",
143 ::core::stringify!(DebugLodVisualizer),
144 ::core::stringify!(new),
145 )
146 });
147 <Self as IDebugLodVisualizerMethods>::ctor(this);
148 this
149 }
150}
151
152#[cfg(feature = "app-debuglodvisualizer")]
153#[doc(hidden)]
154pub mod prelude {
155 pub use super::{DebugLodVisualizer, IDebugLodVisualizer, IDebugLodVisualizerMethods};
156 #[cfg(feature = "app-singletonmonobehaviour_1")]
157 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
158 #[cfg(feature = "system-object")]
159 pub use crate::system::object::IObjectMethods;
160 #[cfg(feature = "unity_engine-behaviour")]
161 pub use crate::unity_engine::behaviour::IBehaviourMethods;
162 #[cfg(feature = "unity_engine-component")]
163 pub use crate::unity_engine::component::IComponentMethods;
164 #[cfg(feature = "unity_engine-monobehaviour")]
165 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
166 #[cfg(feature = "unity_engine-object_2")]
167 pub use crate::unity_engine::object_2::IObject_2Methods;
168 pub use crate::{
169 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
170 system::object::IObject,
171 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
172 };
173}