Skip to main content

engage/generated/unity_engine/experimental/rendering/universal/
light2d_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-light2d_2-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/light2d_2/Light2D_PointLightQuality.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct Light2D_PointLightQuality {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for Light2D_PointLightQuality {
29        const NAME: &'static str = "Light2D.PointLightQuality";
30        const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for Light2D_PointLightQuality {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl Light2D_PointLightQuality {
43        pub fn fast() -> Self {
44            Self { value: 0 }
45        }
46
47        pub fn accurate() -> Self {
48            Self { value: 1 }
49        }
50    }
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/light2d_2/Light2D_LightType.md"))]
53    #[repr(C)]
54    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
55    pub struct Light2D_LightType {
56        pub value: i32,
57    }
58    impl ::unity::ClassIdentity for Light2D_LightType {
59        const NAME: &'static str = "Light2D.LightType";
60        const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
61
62        fn class() -> ::unity::Class {
63            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
64            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
65        }
66    }
67    impl ::unity::IlType for Light2D_LightType {
68        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
69            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
70        }
71    }
72    impl Light2D_LightType {
73        pub fn parametric() -> Self {
74            Self { value: 0 }
75        }
76
77        pub fn freeform() -> Self {
78            Self { value: 1 }
79        }
80
81        pub fn sprite() -> Self {
82            Self { value: 2 }
83        }
84
85        pub fn point() -> Self {
86            Self { value: 3 }
87        }
88
89        pub fn global() -> Self {
90            Self { value: 4 }
91        }
92    }
93
94    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/light2d_2/Light2D_2.md"))]
95    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "Light2D")]
96    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
97    pub struct Light2D_2 {
98        #[offset(24)]
99        #[rename(name = "m_LightType")]
100        pub m_light_type: crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_LightType,
101        #[offset(28)]
102        #[rename(name = "m_BlendStyleIndex")]
103        pub m_blend_style_index: i32,
104        #[offset(32)]
105        #[rename(name = "m_FalloffIntensity")]
106        pub m_falloff_intensity: f32,
107        #[offset(36)]
108        #[rename(name = "m_Color")]
109        pub m_color: crate::unity_engine::color::Color,
110        #[offset(52)]
111        #[rename(name = "m_Intensity")]
112        pub m_intensity: f32,
113        #[offset(56)]
114        #[rename(name = "m_LightVolumeOpacity")]
115        pub m_light_volume_opacity: f32,
116        #[offset(64)]
117        #[rename(name = "m_ApplyToSortingLayers")]
118        pub m_apply_to_sorting_layers: ::unity::Array<i32>,
119        #[offset(72)]
120        #[rename(name = "m_LightCookieSprite")]
121        pub m_light_cookie_sprite: crate::unity_engine::sprite::Sprite,
122        #[offset(80)]
123        #[rename(name = "m_UseNormalMap")]
124        pub m_use_normal_map: bool,
125        #[offset(84)]
126        #[rename(name = "m_LightOrder")]
127        pub m_light_order: i32,
128        #[offset(88)]
129        #[rename(name = "m_AlphaBlendOnOverlap")]
130        pub m_alpha_blend_on_overlap: bool,
131        #[offset(92)]
132        #[rename(name = "m_ShadowIntensity")]
133        pub m_shadow_intensity: f32,
134        #[offset(96)]
135        #[rename(name = "m_ShadowVolumeIntensity")]
136        pub m_shadow_volume_intensity: f32,
137        #[offset(100)]
138        #[rename(name = "m_PreviousLightCookieSprite")]
139        pub m_previous_light_cookie_sprite: i32,
140        #[offset(104)]
141        #[rename(name = "m_Mesh")]
142        pub m_mesh: crate::unity_engine::mesh::Mesh,
143        #[offset(112)]
144        #[rename(name = "m_LocalBounds")]
145        pub m_local_bounds: crate::unity_engine::bounds::Bounds,
146        #[offset(152)]
147        #[rename(name = "m_PointLightInnerAngle")]
148        pub m_point_light_inner_angle: f32,
149        #[offset(156)]
150        #[rename(name = "m_PointLightOuterAngle")]
151        pub m_point_light_outer_angle: f32,
152        #[offset(160)]
153        #[rename(name = "m_PointLightInnerRadius")]
154        pub m_point_light_inner_radius: f32,
155        #[offset(164)]
156        #[rename(name = "m_PointLightOuterRadius")]
157        pub m_point_light_outer_radius: f32,
158        #[offset(168)]
159        #[rename(name = "m_PointLightDistance")]
160        pub m_point_light_distance: f32,
161        #[offset(172)]
162        #[rename(name = "m_PointLightQuality")]
163        pub m_point_light_quality: crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_PointLightQuality,
164        #[offset(176)]
165        #[rename(name = "m_ShapeLightParametricSides")]
166        pub m_shape_light_parametric_sides: i32,
167        #[offset(180)]
168        #[rename(name = "m_ShapeLightParametricAngleOffset")]
169        pub m_shape_light_parametric_angle_offset: f32,
170        #[offset(184)]
171        #[rename(name = "m_ShapeLightParametricRadius")]
172        pub m_shape_light_parametric_radius: f32,
173        #[offset(188)]
174        #[rename(name = "m_ShapeLightFalloffSize")]
175        pub m_shape_light_falloff_size: f32,
176        #[offset(192)]
177        #[rename(name = "m_ShapeLightFalloffOffset")]
178        pub m_shape_light_falloff_offset: crate::unity_engine::vector2::Vector2,
179        #[offset(200)]
180        #[rename(name = "m_ShapePath")]
181        pub m_shape_path: ::unity::Array<crate::unity_engine::vector3::Vector3>,
182        #[offset(208)]
183        #[rename(name = "m_PreviousShapeLightFalloffSize")]
184        pub m_previous_shape_light_falloff_size: f32,
185        #[offset(212)]
186        #[rename(name = "m_PreviousShapeLightParametricSides")]
187        pub m_previous_shape_light_parametric_sides: i32,
188        #[offset(216)]
189        #[rename(name = "m_PreviousShapeLightParametricAngleOffset")]
190        pub m_previous_shape_light_parametric_angle_offset: f32,
191        #[offset(220)]
192        #[rename(name = "m_PreviousShapeLightParametricRadius")]
193        pub m_previous_shape_light_parametric_radius: f32,
194    }
195}
196
197#[cfg(feature = "unity_engine-experimental-rendering-universal-light2d_2-types")]
198pub use __types::*;
199
200#[cfg(feature = "unity_engine-experimental-rendering-universal-light2d_2")]
201pub trait ILight2D_2Methods: ILight2D_2 {
202    #[doc = "`get_affectedSortingLayers()` overload"]
203    fn get_affected_sorting_layers(self) -> ::unity::Array<i32> {
204        unsafe {
205            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1c20usize)as*mut u8, ::unity::Array<i32> ;
207(Light2D_2)__receiver)
208        }
209    }
210    #[doc = "`get_lightCookieSpriteInstanceID()` overload"]
211    fn get_light_cookie_sprite_instance_id(self) -> i32 {
212        unsafe {
213            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1c30usize)as*mut u8,i32;
215(Light2D_2)__receiver)
216        }
217    }
218    #[doc = "`get_boundingSphere()` overload"]
219    fn get_bounding_sphere(self) -> crate::unity_engine::boundingsphere::BoundingSphere {
220        unsafe {
221            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1c50usize)as*mut u8,crate::unity_engine::boundingsphere::BoundingSphere;
223(Light2D_2)__receiver)
224        }
225    }
226    #[doc = "`set_boundingSphere(crate::unity_engine::boundingsphere::BoundingSphere)` overload"]
227    fn set_bounding_sphere(self, value: impl ::core::convert::Into<crate::unity_engine::boundingsphere::BoundingSphere>) -> () {
228        unsafe {
229            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1c60usize)as*mut u8,();
231(Light2D_2)__receiver,(crate::unity_engine::boundingsphere::BoundingSphere)::core::convert::Into::into(value))
232        }
233    }
234    #[doc = "`get_lightMesh()` overload"]
235    fn get_light_mesh(self) -> crate::unity_engine::mesh::Mesh {
236        unsafe {
237            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1c80usize)as*mut u8,crate::unity_engine::mesh::Mesh;
239(Light2D_2)__receiver)
240        }
241    }
242    #[doc = "`get_lightType()` overload"]
243    fn get_light_type(self) -> crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_LightType {
244        unsafe {
245            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1c90usize)as*mut u8,crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_LightType;
247(Light2D_2)__receiver)
248        }
249    }
250    #[doc = "`set_lightType(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_LightType)` overload"]
251    fn set_light_type(
252        self,
253        value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_LightType>,
254    ) -> () {
255        unsafe {
256            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1ca0usize)as*mut u8,();
258(Light2D_2)__receiver,(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_LightType)::core::convert::Into::into(value))
259        }
260    }
261    #[doc = "`get_blendStyleIndex()` overload"]
262    fn get_blend_style_index(self) -> i32 {
263        unsafe {
264            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1fc0usize)as*mut u8,i32;
266(Light2D_2)__receiver)
267        }
268    }
269    #[doc = "`set_blendStyleIndex(i32)` overload"]
270    fn set_blend_style_index(self, value: impl ::core::convert::Into<i32>) -> () {
271        unsafe {
272            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1fd0usize)as*mut u8,();
274(Light2D_2)__receiver,(i32)::core::convert::Into::into(value))
275        }
276    }
277    #[doc = "`get_shadowIntensity()` overload"]
278    fn get_shadow_intensity(self) -> f32 {
279        unsafe {
280            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1fe0usize)as*mut u8,f32;
282(Light2D_2)__receiver)
283        }
284    }
285    #[doc = "`set_shadowIntensity(f32)` overload"]
286    fn set_shadow_intensity(self, value: impl ::core::convert::Into<f32>) -> () {
287        unsafe {
288            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1ff0usize)as*mut u8,();
290(Light2D_2)__receiver,(f32)::core::convert::Into::into(value))
291        }
292    }
293    #[doc = "`get_shadowVolumeIntensity()` overload"]
294    fn get_shadow_volume_intensity(self) -> f32 {
295        unsafe {
296            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2020usize)as*mut u8,f32;
298(Light2D_2)__receiver)
299        }
300    }
301    #[doc = "`set_shadowVolumeIntensity(f32)` overload"]
302    fn set_shadow_volume_intensity(self, value: impl ::core::convert::Into<f32>) -> () {
303        unsafe {
304            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2030usize)as*mut u8,();
306(Light2D_2)__receiver,(f32)::core::convert::Into::into(value))
307        }
308    }
309    #[doc = "`get_color()` overload"]
310    fn get_color(self) -> crate::unity_engine::color::Color {
311        unsafe {
312            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2060usize)as*mut u8,crate::unity_engine::color::Color;
314(Light2D_2)__receiver)
315        }
316    }
317    #[doc = "`set_color(crate::unity_engine::color::Color)` overload"]
318    fn set_color(self, value: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
319        unsafe {
320            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
321            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2070usize)as*mut u8,();
322(Light2D_2)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(value))
323        }
324    }
325    #[doc = "`get_intensity()` overload"]
326    fn get_intensity(self) -> f32 {
327        unsafe {
328            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
329            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2090usize)as*mut u8,f32;
330(Light2D_2)__receiver)
331        }
332    }
333    #[doc = "`set_intensity(f32)` overload"]
334    fn set_intensity(self, value: impl ::core::convert::Into<f32>) -> () {
335        unsafe {
336            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
337            ::unity::il2cpp_call!((::unity::module_base()+0x2ef20a0usize)as*mut u8,();
338(Light2D_2)__receiver,(f32)::core::convert::Into::into(value))
339        }
340    }
341    #[doc = "`get_volumeOpacity()` overload"]
342    fn get_volume_opacity(self) -> f32 {
343        unsafe {
344            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
345            ::unity::il2cpp_call!((::unity::module_base()+0x2ef20b0usize)as*mut u8,f32;
346(Light2D_2)__receiver)
347        }
348    }
349    #[doc = "`get_lightCookieSprite()` overload"]
350    fn get_light_cookie_sprite(self) -> crate::unity_engine::sprite::Sprite {
351        unsafe {
352            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
353            ::unity::il2cpp_call!((::unity::module_base()+0x2ef20c0usize)as*mut u8,crate::unity_engine::sprite::Sprite;
354(Light2D_2)__receiver)
355        }
356    }
357    #[doc = "`get_falloffIntensity()` overload"]
358    fn get_falloff_intensity(self) -> f32 {
359        unsafe {
360            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
361            ::unity::il2cpp_call!((::unity::module_base()+0x2ef20d0usize)as*mut u8,f32;
362(Light2D_2)__receiver)
363        }
364    }
365    #[doc = "`get_useNormalMap()` overload"]
366    fn get_use_normal_map(self) -> bool {
367        unsafe {
368            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
369            ::unity::il2cpp_call!((::unity::module_base()+0x2ef20e0usize)as*mut u8,bool;
370(Light2D_2)__receiver)
371        }
372    }
373    #[doc = "`get_alphaBlendOnOverlap()` overload"]
374    fn get_alpha_blend_on_overlap(self) -> bool {
375        unsafe {
376            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
377            ::unity::il2cpp_call!((::unity::module_base()+0x2ef20f0usize)as*mut u8,bool;
378(Light2D_2)__receiver)
379        }
380    }
381    #[doc = "`get_lightOrder()` overload"]
382    fn get_light_order(self) -> i32 {
383        unsafe {
384            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2100usize)as*mut u8,i32;
386(Light2D_2)__receiver)
387        }
388    }
389    #[doc = "`set_lightOrder(i32)` overload"]
390    fn set_light_order(self, value: impl ::core::convert::Into<i32>) -> () {
391        unsafe {
392            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2110usize)as*mut u8,();
394(Light2D_2)__receiver,(i32)::core::convert::Into::into(value))
395        }
396    }
397    #[doc = "`GetTopMostLitLayer()` overload"]
398    fn get_top_most_lit_layer(self) -> i32 {
399        unsafe {
400            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
401            ::unity::il2cpp_call!((::unity::module_base()+0x2ef2120usize)as*mut u8,i32;
402(Light2D_2)__receiver)
403        }
404    }
405    #[doc = "`UpdateMesh()` overload"]
406    fn update_mesh(self) -> () {
407        unsafe {
408            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
409            ::unity::il2cpp_call!((::unity::module_base()+0x2ef1d30usize)as*mut u8,();
410(Light2D_2)__receiver)
411        }
412    }
413    #[doc = "`UpdateBoundingSphere()` overload"]
414    fn update_bounding_sphere(self) -> () {
415        unsafe {
416            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
417            ::unity::il2cpp_call!((::unity::module_base()+0x2ef3af0usize)as*mut u8,();
418(Light2D_2)__receiver)
419        }
420    }
421    #[doc = "`IsLitLayer(i32)` overload"]
422    fn is_lit_layer(self, layer: impl ::core::convert::Into<i32>) -> bool {
423        unsafe {
424            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
425            ::unity::il2cpp_call!((::unity::module_base()+0x2ef3d70usize)as*mut u8,bool;
426(Light2D_2)__receiver,(i32)::core::convert::Into::into(layer))
427        }
428    }
429    #[doc = "`Awake()` overload"]
430    fn awake(self) -> () {
431        unsafe {
432            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
433            ::unity::il2cpp_call!((::unity::module_base()+0x2ef3de0usize)as*mut u8,();
434(Light2D_2)__receiver)
435        }
436    }
437    #[doc = "`OnEnable()` overload"]
438    fn on_enable(self) -> () {
439        unsafe {
440            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
441            ::unity::il2cpp_call!((::unity::module_base()+0x2ef3e60usize)as*mut u8,();
442(Light2D_2)__receiver)
443        }
444    }
445    #[doc = "`OnDisable()` overload"]
446    fn on_disable(self) -> () {
447        unsafe {
448            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
449            ::unity::il2cpp_call!((::unity::module_base()+0x2ef3fe0usize)as*mut u8,();
450(Light2D_2)__receiver)
451        }
452    }
453    #[doc = "`LateUpdate()` overload"]
454    fn late_update(self) -> () {
455        unsafe {
456            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4130usize)as*mut u8,();
458(Light2D_2)__receiver)
459        }
460    }
461    #[doc = "`get_pointLightInnerAngle()` overload"]
462    fn get_point_light_inner_angle(self) -> f32 {
463        unsafe {
464            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
465            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4220usize)as*mut u8,f32;
466(Light2D_2)__receiver)
467        }
468    }
469    #[doc = "`set_pointLightInnerAngle(f32)` overload"]
470    fn set_point_light_inner_angle(self, value: impl ::core::convert::Into<f32>) -> () {
471        unsafe {
472            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
473            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4230usize)as*mut u8,();
474(Light2D_2)__receiver,(f32)::core::convert::Into::into(value))
475        }
476    }
477    #[doc = "`get_pointLightOuterAngle()` overload"]
478    fn get_point_light_outer_angle(self) -> f32 {
479        unsafe {
480            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
481            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4240usize)as*mut u8,f32;
482(Light2D_2)__receiver)
483        }
484    }
485    #[doc = "`set_pointLightOuterAngle(f32)` overload"]
486    fn set_point_light_outer_angle(self, value: impl ::core::convert::Into<f32>) -> () {
487        unsafe {
488            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
489            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4250usize)as*mut u8,();
490(Light2D_2)__receiver,(f32)::core::convert::Into::into(value))
491        }
492    }
493    #[doc = "`get_pointLightInnerRadius()` overload"]
494    fn get_point_light_inner_radius(self) -> f32 {
495        unsafe {
496            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
497            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4260usize)as*mut u8,f32;
498(Light2D_2)__receiver)
499        }
500    }
501    #[doc = "`set_pointLightInnerRadius(f32)` overload"]
502    fn set_point_light_inner_radius(self, value: impl ::core::convert::Into<f32>) -> () {
503        unsafe {
504            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
505            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4270usize)as*mut u8,();
506(Light2D_2)__receiver,(f32)::core::convert::Into::into(value))
507        }
508    }
509    #[doc = "`get_pointLightOuterRadius()` overload"]
510    fn get_point_light_outer_radius(self) -> f32 {
511        unsafe {
512            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
513            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4280usize)as*mut u8,f32;
514(Light2D_2)__receiver)
515        }
516    }
517    #[doc = "`set_pointLightOuterRadius(f32)` overload"]
518    fn set_point_light_outer_radius(self, value: impl ::core::convert::Into<f32>) -> () {
519        unsafe {
520            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
521            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4290usize)as*mut u8,();
522(Light2D_2)__receiver,(f32)::core::convert::Into::into(value))
523        }
524    }
525    #[doc = "`get_pointLightDistance()` overload"]
526    fn get_point_light_distance(self) -> f32 {
527        unsafe {
528            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529            ::unity::il2cpp_call!((::unity::module_base()+0x2ef42a0usize)as*mut u8,f32;
530(Light2D_2)__receiver)
531        }
532    }
533    #[doc = "`get_pointLightQuality()` overload"]
534    fn get_point_light_quality(self) -> crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_PointLightQuality {
535        unsafe {
536            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
537            ::unity::il2cpp_call!((::unity::module_base()+0x2ef42b0usize)as*mut u8,crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_PointLightQuality;
538(Light2D_2)__receiver)
539        }
540    }
541    #[doc = "`get_isPointLight()` overload"]
542    fn get_is_point_light(self) -> bool {
543        unsafe {
544            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
545            ::unity::il2cpp_call!((::unity::module_base()+0x2ef3d60usize)as*mut u8,bool;
546(Light2D_2)__receiver)
547        }
548    }
549    #[doc = "`get_shapeLightParametricSides()` overload"]
550    fn get_shape_light_parametric_sides(self) -> i32 {
551        unsafe {
552            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
553            ::unity::il2cpp_call!((::unity::module_base()+0x2ef42c0usize)as*mut u8,i32;
554(Light2D_2)__receiver)
555        }
556    }
557    #[doc = "`get_shapeLightParametricAngleOffset()` overload"]
558    fn get_shape_light_parametric_angle_offset(self) -> f32 {
559        unsafe {
560            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
561            ::unity::il2cpp_call!((::unity::module_base()+0x2ef42d0usize)as*mut u8,f32;
562(Light2D_2)__receiver)
563        }
564    }
565    #[doc = "`get_shapeLightParametricRadius()` overload"]
566    fn get_shape_light_parametric_radius(self) -> f32 {
567        unsafe {
568            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
569            ::unity::il2cpp_call!((::unity::module_base()+0x2ef42e0usize)as*mut u8,f32;
570(Light2D_2)__receiver)
571        }
572    }
573    #[doc = "`get_shapeLightFalloffSize()` overload"]
574    fn get_shape_light_falloff_size(self) -> f32 {
575        unsafe {
576            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
577            ::unity::il2cpp_call!((::unity::module_base()+0x2ef42f0usize)as*mut u8,f32;
578(Light2D_2)__receiver)
579        }
580    }
581    #[doc = "`get_shapeLightFalloffOffset()` overload"]
582    fn get_shape_light_falloff_offset(self) -> crate::unity_engine::vector2::Vector2 {
583        unsafe {
584            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
585            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4300usize)as*mut u8,crate::unity_engine::vector2::Vector2;
586(Light2D_2)__receiver)
587        }
588    }
589    #[doc = "`get_shapePath()` overload"]
590    fn get_shape_path(self) -> ::unity::Array<crate::unity_engine::vector3::Vector3> {
591        unsafe {
592            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
593            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4310usize)as*mut u8, ::unity::Array<crate::unity_engine::vector3::Vector3> ;
594(Light2D_2)__receiver)
595        }
596    }
597    #[doc = "`.ctor()` overload"]
598    fn ctor(self) -> () {
599        unsafe {
600            let __receiver = <Light2D_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
601            ::unity::il2cpp_call!((::unity::module_base()+0x2ef4320usize)as*mut u8,();
602(Light2D_2)__receiver)
603        }
604    }
605}
606
607#[cfg(feature = "unity_engine-experimental-rendering-universal-light2d_2")]
608impl<__T: ILight2D_2> ILight2D_2Methods for __T {}
609
610#[cfg(feature = "unity_engine-experimental-rendering-universal-light2d_2")]
611impl Light2D_2 {
612    pub fn get_affected_sorting_layers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
614    }
615
616    pub fn get_light_cookie_sprite_instance_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
618    }
619
620    pub fn get_bounding_sphere_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
622    }
623
624    pub fn set_bounding_sphere_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
626    }
627
628    pub fn get_light_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
629        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
630    }
631
632    pub fn get_light_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
634    }
635
636    pub fn set_light_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
637        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
638    }
639
640    pub fn get_blend_style_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
641        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
642    }
643
644    pub fn set_blend_style_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
646    }
647
648    pub fn get_shadow_intensity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
650    }
651
652    pub fn set_shadow_intensity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
654    }
655
656    pub fn get_shadow_volume_intensity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
658    }
659
660    pub fn set_shadow_volume_intensity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
662    }
663
664    pub fn get_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
665        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
666    }
667
668    pub fn set_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
669        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
670    }
671
672    pub fn get_intensity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
673        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
674    }
675
676    pub fn set_intensity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
677        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
678    }
679
680    pub fn get_volume_opacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
681        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
682    }
683
684    pub fn get_light_cookie_sprite_method_info() -> &'static ::unity::il2cpp::MethodInfo {
685        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
686    }
687
688    pub fn get_falloff_intensity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
689        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
690    }
691
692    pub fn get_use_normal_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
694    }
695
696    pub fn get_alpha_blend_on_overlap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
697        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
698    }
699
700    pub fn get_light_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
701        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
702    }
703
704    pub fn set_light_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
705        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
706    }
707
708    pub fn get_top_most_lit_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
709        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
710    }
711
712    pub fn update_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
713        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
714    }
715
716    pub fn update_bounding_sphere_method_info() -> &'static ::unity::il2cpp::MethodInfo {
717        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
718    }
719
720    pub fn is_lit_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
721        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
722    }
723
724    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
725        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
726    }
727
728    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
730    }
731
732    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
733        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
734    }
735
736    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
737        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
738    }
739
740    pub fn get_point_light_inner_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
741        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
742    }
743
744    pub fn set_point_light_inner_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
745        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
746    }
747
748    pub fn get_point_light_outer_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
749        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
750    }
751
752    pub fn set_point_light_outer_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
753        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
754    }
755
756    pub fn get_point_light_inner_radius_method_info() -> &'static ::unity::il2cpp::MethodInfo {
757        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
758    }
759
760    pub fn set_point_light_inner_radius_method_info() -> &'static ::unity::il2cpp::MethodInfo {
761        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
762    }
763
764    pub fn get_point_light_outer_radius_method_info() -> &'static ::unity::il2cpp::MethodInfo {
765        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
766    }
767
768    pub fn set_point_light_outer_radius_method_info() -> &'static ::unity::il2cpp::MethodInfo {
769        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
770    }
771
772    pub fn get_point_light_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
773        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
774    }
775
776    pub fn get_point_light_quality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
777        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
778    }
779
780    pub fn get_is_point_light_method_info() -> &'static ::unity::il2cpp::MethodInfo {
781        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
782    }
783
784    pub fn get_shape_light_parametric_sides_method_info() -> &'static ::unity::il2cpp::MethodInfo {
785        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
786    }
787
788    pub fn get_shape_light_parametric_angle_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
789        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
790    }
791
792    pub fn get_shape_light_parametric_radius_method_info() -> &'static ::unity::il2cpp::MethodInfo {
793        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
794    }
795
796    pub fn get_shape_light_falloff_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
797        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
798    }
799
800    pub fn get_shape_light_falloff_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
801        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
802    }
803
804    pub fn get_shape_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
805        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
806    }
807
808    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
809        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
810    }
811}
812
813#[cfg(feature = "unity_engine-experimental-rendering-universal-light2d_2")]
814impl Light2D_2 {
815    #[doc = "`.ctor()` — no args"]
816    pub fn new() -> Self {
817        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
818            panic!(
819                "{}
820::{}
821 failed to instantiate",
822                ::core::stringify!(Light2D_2),
823                ::core::stringify!(new),
824            )
825        });
826        <Self as ILight2D_2Methods>::ctor(this);
827        this
828    }
829}
830
831#[cfg(feature = "unity_engine-experimental-rendering-universal-light2d_2")]
832#[doc(hidden)]
833pub mod prelude {
834    pub use super::{ILight2D_2, ILight2D_2Methods, Light2D_2, Light2D_LightType, Light2D_PointLightQuality};
835    #[cfg(feature = "system-object")]
836    pub use crate::system::object::IObjectMethods;
837    #[cfg(feature = "system-enum")]
838    pub use crate::system::r#enum::IEnumMethods;
839    #[cfg(feature = "system-valuetype")]
840    pub use crate::system::valuetype::IValueTypeMethods;
841    #[cfg(feature = "unity_engine-behaviour")]
842    pub use crate::unity_engine::behaviour::IBehaviourMethods;
843    #[cfg(feature = "unity_engine-component")]
844    pub use crate::unity_engine::component::IComponentMethods;
845    #[cfg(feature = "unity_engine-monobehaviour")]
846    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
847    #[cfg(feature = "unity_engine-object_2")]
848    pub use crate::unity_engine::object_2::IObject_2Methods;
849    pub use crate::{
850        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
851        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
852    };
853}