Skip to main content

engage/generated/unity_engine/
renderer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-renderer-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/renderer/Renderer.md"))]
17    #[::unity::class(namespace = "UnityEngine", name = "Renderer")]
18    #[parent(crate::unity_engine::component::Component)]
19    pub struct Renderer {}
20}
21
22#[cfg(feature = "unity_engine-renderer-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-renderer")]
26pub trait IRendererMethods: IRenderer {
27    #[doc = "`get_bounds()` overload"]
28    fn get_bounds(self) -> crate::unity_engine::bounds::Bounds {
29        unsafe {
30            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            ::unity::il2cpp_call!((::unity::module_base()+0x2f88030usize)as*mut u8,crate::unity_engine::bounds::Bounds;
32(Renderer)__receiver)
33        }
34    }
35    #[doc = "`SetStaticLightmapST(crate::unity_engine::vector4::Vector4)` overload"]
36    fn set_static_lightmap_st(self, st: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>) -> () {
37        unsafe {
38            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x2f88100usize)as*mut u8,();
40(Renderer)__receiver,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(st))
41        }
42    }
43    #[doc = "`GetMaterial()` overload"]
44    fn get_material(self) -> crate::unity_engine::material::Material {
45        unsafe {
46            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2f881b0usize)as*mut u8,crate::unity_engine::material::Material;
48(Renderer)__receiver)
49        }
50    }
51    #[doc = "`GetSharedMaterial()` overload"]
52    fn get_shared_material(self) -> crate::unity_engine::material::Material {
53        unsafe {
54            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            ::unity::il2cpp_call!((::unity::module_base()+0x2f88200usize)as*mut u8,crate::unity_engine::material::Material;
56(Renderer)__receiver)
57        }
58    }
59    #[doc = "`SetMaterial(crate::unity_engine::material::Material)` overload"]
60    fn set_material(self, m: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
61        unsafe {
62            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2f88250usize)as*mut u8,();
64(Renderer)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(m))
65        }
66    }
67    #[doc = "`GetMaterialArray()` overload"]
68    fn get_material_array(self) -> ::unity::Array<crate::unity_engine::material::Material> {
69        unsafe {
70            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x2f882a0usize)as*mut u8, ::unity::Array<crate::unity_engine::material::Material> ;
72(Renderer)__receiver)
73        }
74    }
75    #[doc = "`SetMaterialArray(::unity::Array<crate::unity_engine::material::Material>)` overload"]
76    fn set_material_array(self, m: impl ::core::convert::Into<::unity::Array<crate::unity_engine::material::Material>>) -> () {
77        unsafe {
78            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x2f882f0usize)as*mut u8,();
80(Renderer)__receiver,(::unity::Array<crate::unity_engine::material::Material>)::core::convert::Into::into(m))
81        }
82    }
83    #[doc = "`Internal_SetPropertyBlock(crate::unity_engine::materialpropertyblock::MaterialPropertyBlock)` overload"]
84    fn internal_set_property_block(
85        self,
86        properties: impl ::core::convert::Into<crate::unity_engine::materialpropertyblock::MaterialPropertyBlock>,
87    ) -> () {
88        unsafe {
89            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x2f88340usize)as*mut u8,();
91(Renderer)__receiver,(crate::unity_engine::materialpropertyblock::MaterialPropertyBlock)::core::convert::Into::into(properties))
92        }
93    }
94    #[doc = "`SetPropertyBlock(crate::unity_engine::materialpropertyblock::MaterialPropertyBlock)` overload"]
95    fn set_property_block(self, properties: impl ::core::convert::Into<crate::unity_engine::materialpropertyblock::MaterialPropertyBlock>) -> () {
96        unsafe {
97            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            ::unity::il2cpp_call!((::unity::module_base()+0x2f88390usize)as*mut u8,();
99(Renderer)__receiver,(crate::unity_engine::materialpropertyblock::MaterialPropertyBlock)::core::convert::Into::into(properties))
100        }
101    }
102    #[doc = "`get_enabled()` overload"]
103    fn get_enabled(self) -> bool {
104        unsafe {
105            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            ::unity::il2cpp_call!((::unity::module_base()+0x2f883e0usize)as*mut u8,bool;
107(Renderer)__receiver)
108        }
109    }
110    #[doc = "`set_enabled(bool)` overload"]
111    fn set_enabled(self, value: impl ::core::convert::Into<bool>) -> () {
112        unsafe {
113            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x2f88430usize)as*mut u8,();
115(Renderer)__receiver,(bool)::core::convert::Into::into(value))
116        }
117    }
118    #[doc = "`get_isVisible()` overload"]
119    fn get_is_visible(self) -> bool {
120        unsafe {
121            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122            ::unity::il2cpp_call!((::unity::module_base()+0x2f88480usize)as*mut u8,bool;
123(Renderer)__receiver)
124        }
125    }
126    #[doc = "`get_shadowCastingMode()` overload"]
127    fn get_shadow_casting_mode(self) -> crate::unity_engine::rendering::shadowcastingmode::ShadowCastingMode {
128        unsafe {
129            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130            ::unity::il2cpp_call!((::unity::module_base()+0x2f884d0usize)as*mut u8,crate::unity_engine::rendering::shadowcastingmode::ShadowCastingMode;
131(Renderer)__receiver)
132        }
133    }
134    #[doc = "`set_shadowCastingMode(crate::unity_engine::rendering::shadowcastingmode::ShadowCastingMode)` overload"]
135    fn set_shadow_casting_mode(self, value: impl ::core::convert::Into<crate::unity_engine::rendering::shadowcastingmode::ShadowCastingMode>) -> () {
136        unsafe {
137            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x2f88520usize)as*mut u8,();
139(Renderer)__receiver,(crate::unity_engine::rendering::shadowcastingmode::ShadowCastingMode)::core::convert::Into::into(value))
140        }
141    }
142    #[doc = "`set_receiveShadows(bool)` overload"]
143    fn set_receive_shadows(self, value: impl ::core::convert::Into<bool>) -> () {
144        unsafe {
145            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            ::unity::il2cpp_call!((::unity::module_base()+0x2f88570usize)as*mut u8,();
147(Renderer)__receiver,(bool)::core::convert::Into::into(value))
148        }
149    }
150    #[doc = "`set_motionVectorGenerationMode(crate::unity_engine::motionvectorgenerationmode::MotionVectorGenerationMode)` overload"]
151    fn set_motion_vector_generation_mode(
152        self,
153        value: impl ::core::convert::Into<crate::unity_engine::motionvectorgenerationmode::MotionVectorGenerationMode>,
154    ) -> () {
155        unsafe {
156            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            ::unity::il2cpp_call!((::unity::module_base()+0x2f885c0usize)as*mut u8,();
158(Renderer)__receiver,(crate::unity_engine::motionvectorgenerationmode::MotionVectorGenerationMode)::core::convert::Into::into(value))
159        }
160    }
161    #[doc = "`get_sortingLayerID()` overload"]
162    fn get_sorting_layer_id(self) -> i32 {
163        unsafe {
164            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165            ::unity::il2cpp_call!((::unity::module_base()+0x2f88610usize)as*mut u8,i32;
166(Renderer)__receiver)
167        }
168    }
169    #[doc = "`set_sortingLayerID(i32)` overload"]
170    fn set_sorting_layer_id(self, value: impl ::core::convert::Into<i32>) -> () {
171        unsafe {
172            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173            ::unity::il2cpp_call!((::unity::module_base()+0x2f88660usize)as*mut u8,();
174(Renderer)__receiver,(i32)::core::convert::Into::into(value))
175        }
176    }
177    #[doc = "`get_sortingOrder()` overload"]
178    fn get_sorting_order(self) -> i32 {
179        unsafe {
180            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181            ::unity::il2cpp_call!((::unity::module_base()+0x2f886b0usize)as*mut u8,i32;
182(Renderer)__receiver)
183        }
184    }
185    #[doc = "`set_sortingOrder(i32)` overload"]
186    fn set_sorting_order(self, value: impl ::core::convert::Into<i32>) -> () {
187        unsafe {
188            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            ::unity::il2cpp_call!((::unity::module_base()+0x2f88700usize)as*mut u8,();
190(Renderer)__receiver,(i32)::core::convert::Into::into(value))
191        }
192    }
193    #[doc = "`get_lightmapIndex()` overload"]
194    fn get_lightmap_index(self) -> i32 {
195        unsafe {
196            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x2f888d0usize)as*mut u8,i32;
198(Renderer)__receiver)
199        }
200    }
201    #[doc = "`set_lightmapIndex(i32)` overload"]
202    fn set_lightmap_index(self, value: impl ::core::convert::Into<i32>) -> () {
203        unsafe {
204            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x2f88920usize)as*mut u8,();
206(Renderer)__receiver,(i32)::core::convert::Into::into(value))
207        }
208    }
209    #[doc = "`get_lightmapScaleOffset()` overload"]
210    fn get_lightmap_scale_offset(self) -> crate::unity_engine::vector4::Vector4 {
211        unsafe {
212            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x2f88980usize)as*mut u8,crate::unity_engine::vector4::Vector4;
214(Renderer)__receiver)
215        }
216    }
217    #[doc = "`set_lightmapScaleOffset(crate::unity_engine::vector4::Vector4)` overload"]
218    fn set_lightmap_scale_offset(self, value: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>) -> () {
219        unsafe {
220            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x2f889e0usize)as*mut u8,();
222(Renderer)__receiver,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(value))
223        }
224    }
225    #[doc = "`GetSharedMaterialArray()` overload"]
226    fn get_shared_material_array(self) -> ::unity::Array<crate::unity_engine::material::Material> {
227        unsafe {
228            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            ::unity::il2cpp_call!((::unity::module_base()+0x2f88a40usize)as*mut u8, ::unity::Array<crate::unity_engine::material::Material> ;
230(Renderer)__receiver)
231        }
232    }
233    #[doc = "`get_materials()` overload"]
234    fn get_materials(self) -> ::unity::Array<crate::unity_engine::material::Material> {
235        unsafe {
236            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!((::unity::module_base()+0x2f88a90usize)as*mut u8, ::unity::Array<crate::unity_engine::material::Material> ;
238(Renderer)__receiver)
239        }
240    }
241    #[doc = "`set_materials(::unity::Array<crate::unity_engine::material::Material>)` overload"]
242    fn set_materials(self, value: impl ::core::convert::Into<::unity::Array<crate::unity_engine::material::Material>>) -> () {
243        unsafe {
244            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            ::unity::il2cpp_call!((::unity::module_base()+0x2f88ae0usize)as*mut u8,();
246(Renderer)__receiver,(::unity::Array<crate::unity_engine::material::Material>)::core::convert::Into::into(value))
247        }
248    }
249    #[doc = "`set_sharedMaterial(crate::unity_engine::material::Material)` overload"]
250    fn set_shared_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
251        unsafe {
252            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253            ::unity::il2cpp_call!((::unity::module_base()+0x2f88c20usize)as*mut u8,();
254(Renderer)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(value))
255        }
256    }
257    #[doc = "`get_sharedMaterials()` overload"]
258    fn get_shared_materials(self) -> ::unity::Array<crate::unity_engine::material::Material> {
259        unsafe {
260            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261            ::unity::il2cpp_call!((::unity::module_base()+0x2f88c70usize)as*mut u8, ::unity::Array<crate::unity_engine::material::Material> ;
262(Renderer)__receiver)
263        }
264    }
265    #[doc = "`set_sharedMaterials(::unity::Array<crate::unity_engine::material::Material>)` overload"]
266    fn set_shared_materials(self, value: impl ::core::convert::Into<::unity::Array<crate::unity_engine::material::Material>>) -> () {
267        unsafe {
268            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269            ::unity::il2cpp_call!((::unity::module_base()+0x2f88cc0usize)as*mut u8,();
270(Renderer)__receiver,(::unity::Array<crate::unity_engine::material::Material>)::core::convert::Into::into(value))
271        }
272    }
273    #[doc = "`.ctor()` overload"]
274    fn ctor(self) -> () {
275        unsafe {
276            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277            ::unity::il2cpp_call!((::unity::module_base()+0x2f88d10usize)as*mut u8,();
278(Renderer)__receiver)
279        }
280    }
281    #[doc = "`get_bounds_Injected(*mutcrate::unity_engine::bounds::Bounds)` overload"]
282    fn get_bounds_injected(self) -> crate::unity_engine::bounds::Bounds {
283        unsafe {
284            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::bounds::Bounds>::uninit();
286            ::unity::il2cpp_call!((::unity::module_base()+0x2f880b0usize)as*mut u8,();
287(Renderer)__receiver,(*mut crate::unity_engine::bounds::Bounds)__out_0.as_mut_ptr());
288            __out_0.assume_init()
289        }
290    }
291    #[doc = "`SetStaticLightmapST_Injected(*mutcrate::unity_engine::vector4::Vector4)` overload"]
292    fn set_static_lightmap_st_injected(self) -> crate::unity_engine::vector4::Vector4 {
293        unsafe {
294            let __receiver = <Renderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector4::Vector4>::uninit();
296            ::unity::il2cpp_call!((::unity::module_base()+0x2f88160usize)as*mut u8,();
297(Renderer)__receiver,(*mut crate::unity_engine::vector4::Vector4)__out_0.as_mut_ptr());
298            __out_0.assume_init()
299        }
300    }
301}
302
303#[cfg(feature = "unity_engine-renderer")]
304impl<__T: IRenderer> IRendererMethods for __T {}
305
306#[cfg(feature = "unity_engine-renderer")]
307impl Renderer {
308    pub fn get_bounds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
310    }
311
312    pub fn set_static_lightmap_st_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
314    }
315
316    pub fn get_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
318    }
319
320    pub fn get_shared_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
322    }
323
324    pub fn set_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
326    }
327
328    pub fn get_material_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
330    }
331
332    pub fn set_material_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
334    }
335
336    pub fn internal_set_property_block_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
338    }
339
340    pub fn set_property_block_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
342    }
343
344    pub fn get_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
346    }
347
348    pub fn set_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
350    }
351
352    pub fn get_is_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
354    }
355
356    pub fn get_shadow_casting_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
358    }
359
360    pub fn set_shadow_casting_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
362    }
363
364    pub fn set_receive_shadows_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
366    }
367
368    pub fn set_motion_vector_generation_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
370    }
371
372    pub fn get_sorting_layer_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
374    }
375
376    pub fn set_sorting_layer_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
378    }
379
380    pub fn get_sorting_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
382    }
383
384    pub fn set_sorting_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
386    }
387
388    pub fn get_lightmap_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
390    }
391
392    pub fn set_lightmap_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
394    }
395
396    pub fn get_lightmap_scale_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
398    }
399
400    pub fn set_lightmap_scale_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
402    }
403
404    pub fn get_shared_material_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
406    }
407
408    pub fn get_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
410    }
411
412    pub fn set_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
414    }
415
416    pub fn set_shared_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
418    }
419
420    pub fn get_shared_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
422    }
423
424    pub fn set_shared_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
426    }
427
428    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
430    }
431
432    pub fn get_bounds_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
434    }
435
436    pub fn set_static_lightmap_st_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
438    }
439}
440
441#[cfg(feature = "unity_engine-renderer")]
442impl Renderer {
443    #[doc = "`.ctor()` — no args"]
444    pub fn new() -> Self {
445        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
446            panic!(
447                "{}
448::{}
449 failed to instantiate",
450                ::core::stringify!(Renderer),
451                ::core::stringify!(new),
452            )
453        });
454        <Self as IRendererMethods>::ctor(this);
455        this
456    }
457}
458
459#[cfg(feature = "unity_engine-renderer")]
460#[doc(hidden)]
461pub mod prelude {
462    pub use super::{IRenderer, IRendererMethods, Renderer};
463    #[cfg(feature = "system-object")]
464    pub use crate::system::object::IObjectMethods;
465    #[cfg(feature = "unity_engine-component")]
466    pub use crate::unity_engine::component::IComponentMethods;
467    #[cfg(feature = "unity_engine-object_2")]
468    pub use crate::unity_engine::object_2::IObject_2Methods;
469    pub use crate::{
470        system::object::IObject,
471        unity_engine::{component::IComponent, object_2::IObject_2},
472    };
473}