Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-custom-customenvset-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            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/customenvset/CustomEnvSet.md"))]
19    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom", name = "CustomEnvSet")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct CustomEnvSet {
22        #[offset(24)]
23        #[rename(name = "reflectionProbes")]
24        pub reflection_probes: ::unity::Array<crate::unity_engine::reflectionprobe::ReflectionProbe>,
25    }
26}
27
28#[cfg(feature = "unity_engine-rendering-universal-custom-customenvset-types")]
29pub use __types::*;
30
31#[cfg(feature = "unity_engine-rendering-universal-custom-customenvset")]
32pub trait ICustomEnvSetMethods: ICustomEnvSet {
33    #[doc = "`OnEnable()` overload"]
34    fn on_enable(self) -> () {
35        unsafe {
36            let __receiver = <CustomEnvSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x2a46930usize)as*mut u8,();
38(CustomEnvSet)__receiver)
39        }
40    }
41    #[doc = "`OnDisable()` overload"]
42    fn on_disable(self) -> () {
43        unsafe {
44            let __receiver = <CustomEnvSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x2a46b20usize)as*mut u8,();
46(CustomEnvSet)__receiver)
47        }
48    }
49    #[doc = "`.ctor()` overload"]
50    fn ctor(self) -> () {
51        unsafe {
52            let __receiver = <CustomEnvSet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            ::unity::il2cpp_call!((::unity::module_base()+0x2a46c90usize)as*mut u8,();
54(CustomEnvSet)__receiver)
55        }
56    }
57}
58
59#[cfg(feature = "unity_engine-rendering-universal-custom-customenvset")]
60impl<__T: ICustomEnvSet> ICustomEnvSetMethods for __T {}
61
62#[cfg(feature = "unity_engine-rendering-universal-custom-customenvset")]
63impl CustomEnvSet {
64    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
66    }
67
68    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
70    }
71
72    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
74    }
75}
76
77#[cfg(feature = "unity_engine-rendering-universal-custom-customenvset")]
78impl CustomEnvSet {
79    #[doc = "`.ctor()` — no args"]
80    pub fn new() -> Self {
81        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
82            panic!(
83                "{}
84::{}
85 failed to instantiate",
86                ::core::stringify!(CustomEnvSet),
87                ::core::stringify!(new),
88            )
89        });
90        <Self as ICustomEnvSetMethods>::ctor(this);
91        this
92    }
93}
94
95#[cfg(feature = "unity_engine-rendering-universal-custom-customenvset")]
96#[doc(hidden)]
97pub mod prelude {
98    pub use super::{CustomEnvSet, ICustomEnvSet, ICustomEnvSetMethods};
99    #[cfg(feature = "system-object")]
100    pub use crate::system::object::IObjectMethods;
101    #[cfg(feature = "unity_engine-behaviour")]
102    pub use crate::unity_engine::behaviour::IBehaviourMethods;
103    #[cfg(feature = "unity_engine-component")]
104    pub use crate::unity_engine::component::IComponentMethods;
105    #[cfg(feature = "unity_engine-monobehaviour")]
106    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
107    #[cfg(feature = "unity_engine-object_2")]
108    pub use crate::unity_engine::object_2::IObject_2Methods;
109    pub use crate::{
110        system::object::IObject,
111        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
112    };
113}