engage/generated/unity_engine/
lodgroup.rs1#[cfg(feature = "unity_engine-lodgroup-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::{
11 component::{Component, IComponent},
12 object_2::{IObject_2, Object_2},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/lodgroup/LODGroup.md"))]
17 #[::unity::class(namespace = "UnityEngine", name = "LODGroup")]
18 #[parent(crate::unity_engine::component::Component)]
19 pub struct LODGroup {}
20}
21
22#[cfg(feature = "unity_engine-lodgroup-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-lodgroup")]
26impl LODGroup {
27 #[doc = "`get_crossFadeAnimationDuration()` overload"]
28 pub fn get_cross_fade_animation_duration() -> f32 {
29 unsafe {
30 ::unity::il2cpp_call!((::unity::module_base()+0x2c52e20usize)as*mut u8,f32;
31 )
32 }
33 }
34
35 #[doc = "`set_crossFadeAnimationDuration(f32)` overload"]
36 pub fn set_cross_fade_animation_duration(value: impl ::core::convert::Into<f32>) -> () {
37 unsafe {
38 ::unity::il2cpp_call!((::unity::module_base()+0x2c52e60usize)as*mut u8,();
39(f32)::core::convert::Into::into(value))
40 }
41 }
42}
43
44#[cfg(feature = "unity_engine-lodgroup")]
45pub trait ILODGroupMethods: ILODGroup {
46 #[doc = "`get_localReferencePoint()` overload"]
47 fn get_local_reference_point(self) -> crate::unity_engine::vector3::Vector3 {
48 unsafe {
49 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x2c52860usize)as*mut u8,crate::unity_engine::vector3::Vector3;
51(LODGroup)__receiver)
52 }
53 }
54 #[doc = "`set_localReferencePoint(crate::unity_engine::vector3::Vector3)` overload"]
55 fn set_local_reference_point(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
56 unsafe {
57 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x2c52910usize)as*mut u8,();
59(LODGroup)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
60 }
61 }
62 #[doc = "`get_size()` overload"]
63 fn get_size(self) -> f32 {
64 unsafe {
65 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x2c529c0usize)as*mut u8,f32;
67(LODGroup)__receiver)
68 }
69 }
70 #[doc = "`set_size(f32)` overload"]
71 fn set_size(self, value: impl ::core::convert::Into<f32>) -> () {
72 unsafe {
73 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x2c52a10usize)as*mut u8,();
75(LODGroup)__receiver,(f32)::core::convert::Into::into(value))
76 }
77 }
78 #[doc = "`get_lodCount()` overload"]
79 fn get_lod_count(self) -> i32 {
80 unsafe {
81 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x2c52a60usize)as*mut u8,i32;
83(LODGroup)__receiver)
84 }
85 }
86 #[doc = "`get_fadeMode()` overload"]
87 fn get_fade_mode(self) -> crate::unity_engine::lodfademode::LODFadeMode {
88 unsafe {
89 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x2c52ab0usize)as*mut u8,crate::unity_engine::lodfademode::LODFadeMode;
91(LODGroup)__receiver)
92 }
93 }
94 #[doc = "`set_fadeMode(crate::unity_engine::lodfademode::LODFadeMode)` overload"]
95 fn set_fade_mode(self, value: impl ::core::convert::Into<crate::unity_engine::lodfademode::LODFadeMode>) -> () {
96 unsafe {
97 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x2c52b00usize)as*mut u8,();
99(LODGroup)__receiver,(crate::unity_engine::lodfademode::LODFadeMode)::core::convert::Into::into(value))
100 }
101 }
102 #[doc = "`get_animateCrossFading()` overload"]
103 fn get_animate_cross_fading(self) -> bool {
104 unsafe {
105 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x2c52b50usize)as*mut u8,bool;
107(LODGroup)__receiver)
108 }
109 }
110 #[doc = "`set_animateCrossFading(bool)` overload"]
111 fn set_animate_cross_fading(self, value: impl ::core::convert::Into<bool>) -> () {
112 unsafe {
113 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x2c52ba0usize)as*mut u8,();
115(LODGroup)__receiver,(bool)::core::convert::Into::into(value))
116 }
117 }
118 #[doc = "`get_enabled()` overload"]
119 fn get_enabled(self) -> bool {
120 unsafe {
121 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x2c52bf0usize)as*mut u8,bool;
123(LODGroup)__receiver)
124 }
125 }
126 #[doc = "`set_enabled(bool)` overload"]
127 fn set_enabled(self, value: impl ::core::convert::Into<bool>) -> () {
128 unsafe {
129 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x2c52c40usize)as*mut u8,();
131(LODGroup)__receiver,(bool)::core::convert::Into::into(value))
132 }
133 }
134 #[doc = "`RecalculateBounds()` overload"]
135 fn recalculate_bounds(self) -> () {
136 unsafe {
137 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 ::unity::il2cpp_call!((::unity::module_base()+0x2c52c90usize)as*mut u8,();
139(LODGroup)__receiver)
140 }
141 }
142 #[doc = "`GetLODs()` overload"]
143 fn get_lo_ds(self) -> ::unity::Array<crate::unity_engine::lod::LOD> {
144 unsafe {
145 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 ::unity::il2cpp_call!((::unity::module_base()+0x2c52ce0usize)as*mut u8, ::unity::Array<crate::unity_engine::lod::LOD> ;
147(LODGroup)__receiver)
148 }
149 }
150 #[doc = "`SetLODS(::unity::Array<crate::unity_engine::lod::LOD>)` overload"]
151 fn set_lods(self, lods: impl ::core::convert::Into<::unity::Array<crate::unity_engine::lod::LOD>>) -> () {
152 unsafe {
153 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x2c52d30usize)as*mut u8,();
155(LODGroup)__receiver,(::unity::Array<crate::unity_engine::lod::LOD>)::core::convert::Into::into(lods))
156 }
157 }
158 #[doc = "`SetLODs(::unity::Array<crate::unity_engine::lod::LOD>)` overload"]
159 fn set_lo_ds(self, lods: impl ::core::convert::Into<::unity::Array<crate::unity_engine::lod::LOD>>) -> () {
160 unsafe {
161 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x2c52d80usize)as*mut u8,();
163(LODGroup)__receiver,(::unity::Array<crate::unity_engine::lod::LOD>)::core::convert::Into::into(lods))
164 }
165 }
166 #[doc = "`ForceLOD(i32)` overload"]
167 fn force_lod(self, index: impl ::core::convert::Into<i32>) -> () {
168 unsafe {
169 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x2c52dd0usize)as*mut u8,();
171(LODGroup)__receiver,(i32)::core::convert::Into::into(index))
172 }
173 }
174 #[doc = "`get_worldReferencePoint()` overload"]
175 fn get_world_reference_point(self) -> crate::unity_engine::vector3::Vector3 {
176 unsafe {
177 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!((::unity::module_base()+0x2c52eb0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
179(LODGroup)__receiver)
180 }
181 }
182 #[doc = "`.ctor()` overload"]
183 fn ctor(self) -> () {
184 unsafe {
185 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x2c52f60usize)as*mut u8,();
187(LODGroup)__receiver)
188 }
189 }
190 #[doc = "`get_localReferencePoint_Injected(*mutcrate::unity_engine::vector3::Vector3)` overload"]
191 fn get_local_reference_point_injected(self) -> crate::unity_engine::vector3::Vector3 {
192 unsafe {
193 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
195 ::unity::il2cpp_call!((::unity::module_base()+0x2c528c0usize)as*mut u8,();
196(LODGroup)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr());
197 __out_0.assume_init()
198 }
199 }
200 #[doc = "`set_localReferencePoint_Injected(*mutcrate::unity_engine::vector3::Vector3)` overload"]
201 fn set_local_reference_point_injected(self) -> crate::unity_engine::vector3::Vector3 {
202 unsafe {
203 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
205 ::unity::il2cpp_call!((::unity::module_base()+0x2c52970usize)as*mut u8,();
206(LODGroup)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr());
207 __out_0.assume_init()
208 }
209 }
210 #[doc = "`get_worldReferencePoint_Injected(*mutcrate::unity_engine::vector3::Vector3)` overload"]
211 fn get_world_reference_point_injected(self) -> crate::unity_engine::vector3::Vector3 {
212 unsafe {
213 let __receiver = <LODGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
215 ::unity::il2cpp_call!((::unity::module_base()+0x2c52f10usize)as*mut u8,();
216(LODGroup)__receiver,(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr());
217 __out_0.assume_init()
218 }
219 }
220}
221
222#[cfg(feature = "unity_engine-lodgroup")]
223impl<__T: ILODGroup> ILODGroupMethods for __T {}
224
225#[cfg(feature = "unity_engine-lodgroup")]
226impl LODGroup {
227 pub fn get_local_reference_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
229 }
230
231 pub fn set_local_reference_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
233 }
234
235 pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
237 }
238
239 pub fn set_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
241 }
242
243 pub fn get_lod_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
245 }
246
247 pub fn get_fade_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
249 }
250
251 pub fn set_fade_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
253 }
254
255 pub fn get_animate_cross_fading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
257 }
258
259 pub fn set_animate_cross_fading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
261 }
262
263 pub fn get_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
265 }
266
267 pub fn set_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
269 }
270
271 pub fn recalculate_bounds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
273 }
274
275 pub fn get_lo_ds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
277 }
278
279 pub fn set_lods_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
281 }
282
283 pub fn set_lo_ds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
285 }
286
287 pub fn force_lod_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
289 }
290
291 pub fn get_cross_fade_animation_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
293 }
294
295 pub fn set_cross_fade_animation_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
297 }
298
299 pub fn get_world_reference_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
301 }
302
303 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
305 }
306
307 pub fn get_local_reference_point_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
309 }
310
311 pub fn set_local_reference_point_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
313 }
314
315 pub fn get_world_reference_point_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
317 }
318}
319
320#[cfg(feature = "unity_engine-lodgroup")]
321impl LODGroup {
322 #[doc = "`.ctor()` — no args"]
323 pub fn new() -> Self {
324 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
325 panic!(
326 "{}
327::{}
328 failed to instantiate",
329 ::core::stringify!(LODGroup),
330 ::core::stringify!(new),
331 )
332 });
333 <Self as ILODGroupMethods>::ctor(this);
334 this
335 }
336}
337
338#[cfg(feature = "unity_engine-lodgroup")]
339#[doc(hidden)]
340pub mod prelude {
341 pub use super::{ILODGroup, ILODGroupMethods, LODGroup};
342 #[cfg(feature = "system-object")]
343 pub use crate::system::object::IObjectMethods;
344 #[cfg(feature = "unity_engine-component")]
345 pub use crate::unity_engine::component::IComponentMethods;
346 #[cfg(feature = "unity_engine-object_2")]
347 pub use crate::unity_engine::object_2::IObject_2Methods;
348 pub use crate::{
349 system::object::IObject,
350 unity_engine::{component::IComponent, object_2::IObject_2},
351 };
352}