Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dlookuptexture-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/experimental/rendering/universal/light2dlookuptexture/Light2DLookupTexture.md"))]
11    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "Light2DLookupTexture")]
12    #[parent(crate::system::object::Object)]
13    pub struct Light2DLookupTexture {
14        #[static_field]
15        #[rename(name = "s_PointLightLookupTexture")]
16        pub s_point_light_lookup_texture: crate::unity_engine::texture2d::Texture2D,
17        #[static_field]
18        #[rename(name = "s_FalloffLookupTexture")]
19        pub s_falloff_lookup_texture: crate::unity_engine::texture2d::Texture2D,
20    }
21}
22
23#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dlookuptexture-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dlookuptexture")]
27impl Light2DLookupTexture {
28    #[doc = "`GetLightLookupTexture()` overload"]
29    pub fn get_light_lookup_texture() -> crate::unity_engine::texture::Texture {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2ef5000usize)as*mut u8,crate::unity_engine::texture::Texture;
32            )
33        }
34    }
35
36    #[doc = "`GetFalloffLookupTexture()` overload"]
37    pub fn get_falloff_lookup_texture() -> crate::unity_engine::texture::Texture {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x2ef5440usize)as*mut u8,crate::unity_engine::texture::Texture;
40            )
41        }
42    }
43
44    #[doc = "`CreatePointLightLookupTexture()` overload"]
45    pub fn create_point_light_lookup_texture() -> crate::unity_engine::texture2d::Texture2D {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2ef50c0usize)as*mut u8,crate::unity_engine::texture2d::Texture2D;
48            )
49        }
50    }
51
52    #[doc = "`CreateFalloffLookupTexture()` overload"]
53    pub fn create_falloff_lookup_texture() -> crate::unity_engine::texture2d::Texture2D {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x2ef5500usize)as*mut u8,crate::unity_engine::texture2d::Texture2D;
56            )
57        }
58    }
59}
60
61#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dlookuptexture")]
62impl Light2DLookupTexture {
63    pub fn get_light_lookup_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
65    }
66
67    pub fn get_falloff_lookup_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
69    }
70
71    pub fn create_point_light_lookup_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
73    }
74
75    pub fn create_falloff_lookup_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
77    }
78}
79
80#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dlookuptexture")]
81#[doc(hidden)]
82pub mod prelude {
83    pub use super::{ILight2DLookupTexture, Light2DLookupTexture};
84    pub use crate::system::object::IObject;
85    #[cfg(feature = "system-object")]
86    pub use crate::system::object::IObjectMethods;
87}