Skip to main content

engage/generated/unity_engine/rendering/universal/custom/
customshadowdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-custom-customshadowdata-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            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/customshadowdata/CustomShadowData.md"))]
17    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom", name = "CustomShadowData")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    pub struct CustomShadowData {
20        #[offset(24)]
21        #[rename(name = "MainLightShadowmapResolution")]
22        pub main_light_shadowmap_resolution: crate::unity_engine::rendering::universal::shadowresolution_2::ShadowResolution_2,
23        #[offset(28)]
24        #[rename(name = "ShadowDistance")]
25        pub shadow_distance: f32,
26        #[offset(32)]
27        #[rename(name = "CascadeSplit1")]
28        pub cascade_split1: f32,
29        #[offset(36)]
30        #[rename(name = "ShadowDepthBias")]
31        pub shadow_depth_bias: f32,
32        #[offset(40)]
33        #[rename(name = "ShadowNormalBias")]
34        pub shadow_normal_bias: f32,
35    }
36}
37
38#[cfg(feature = "unity_engine-rendering-universal-custom-customshadowdata-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-rendering-universal-custom-customshadowdata")]
42pub trait ICustomShadowDataMethods: ICustomShadowData {
43    #[doc = "`.ctor()` overload"]
44    fn ctor(self) -> () {
45        unsafe {
46            let __receiver = <CustomShadowData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2a4e740usize)as*mut u8,();
48(CustomShadowData)__receiver)
49        }
50    }
51}
52
53#[cfg(feature = "unity_engine-rendering-universal-custom-customshadowdata")]
54impl<__T: ICustomShadowData> ICustomShadowDataMethods for __T {}
55
56#[cfg(feature = "unity_engine-rendering-universal-custom-customshadowdata")]
57impl CustomShadowData {
58    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
60    }
61}
62
63#[cfg(feature = "unity_engine-rendering-universal-custom-customshadowdata")]
64impl CustomShadowData {
65    #[doc = "`.ctor()` — no args"]
66    pub fn new() -> Self {
67        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
68            panic!(
69                "{}
70::{}
71 failed to instantiate",
72                ::core::stringify!(CustomShadowData),
73                ::core::stringify!(new),
74            )
75        });
76        <Self as ICustomShadowDataMethods>::ctor(this);
77        this
78    }
79}
80
81#[cfg(feature = "unity_engine-rendering-universal-custom-customshadowdata")]
82#[doc(hidden)]
83pub mod prelude {
84    pub use super::{CustomShadowData, ICustomShadowData, ICustomShadowDataMethods};
85    #[cfg(feature = "system-object")]
86    pub use crate::system::object::IObjectMethods;
87    #[cfg(feature = "unity_engine-object_2")]
88    pub use crate::unity_engine::object_2::IObject_2Methods;
89    #[cfg(feature = "unity_engine-scriptableobject")]
90    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
91    pub use crate::{
92        system::object::IObject,
93        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
94    };
95}