engage/generated/unity_engine/rendering/
volume.rs1#[cfg(feature = "unity_engine-rendering-volume-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/volume/Volume.md"))]
19 #[::unity::class(namespace = "UnityEngine.Rendering", name = "Volume")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct Volume {
22 #[offset(24)]
23 #[rename(name = "isGlobal")]
24 pub is_global: bool,
25 #[offset(28)]
26 #[rename(name = "priority")]
27 pub priority: f32,
28 #[offset(32)]
29 #[rename(name = "blendDistance")]
30 pub blend_distance: f32,
31 #[offset(36)]
32 #[rename(name = "weight")]
33 pub weight: f32,
34 #[offset(40)]
35 #[rename(name = "sharedProfile")]
36 pub shared_profile: crate::unity_engine::rendering::volumeprofile::VolumeProfile,
37 #[offset(48)]
38 #[rename(name = "m_PreviousLayer")]
39 pub m_previous_layer: i32,
40 #[offset(52)]
41 #[rename(name = "m_PreviousPriority")]
42 pub m_previous_priority: f32,
43 #[offset(56)]
44 #[rename(name = "m_InternalProfile")]
45 pub m_internal_profile: crate::unity_engine::rendering::volumeprofile::VolumeProfile,
46 }
47}
48
49#[cfg(feature = "unity_engine-rendering-volume-types")]
50pub use __types::*;
51
52#[cfg(feature = "unity_engine-rendering-volume")]
53pub trait IVolumeMethods: IVolume {
54 #[doc = "`get_profile()` overload"]
55 fn get_profile(self) -> crate::unity_engine::rendering::volumeprofile::VolumeProfile {
56 unsafe {
57 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x33e49c0usize)as*mut u8,crate::unity_engine::rendering::volumeprofile::VolumeProfile;
59(Volume)__receiver)
60 }
61 }
62 #[doc = "`set_profile(crate::unity_engine::rendering::volumeprofile::VolumeProfile)` overload"]
63 fn set_profile(self, value: impl ::core::convert::Into<crate::unity_engine::rendering::volumeprofile::VolumeProfile>) -> () {
64 unsafe {
65 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x33e4be0usize)as*mut u8,();
67(Volume)__receiver,(crate::unity_engine::rendering::volumeprofile::VolumeProfile)::core::convert::Into::into(value))
68 }
69 }
70 #[doc = "`get_profileRef()` overload"]
71 fn get_profile_ref(self) -> crate::unity_engine::rendering::volumeprofile::VolumeProfile {
72 unsafe {
73 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x33e4bf0usize)as*mut u8,crate::unity_engine::rendering::volumeprofile::VolumeProfile;
75(Volume)__receiver)
76 }
77 }
78 #[doc = "`HasInstantiatedProfile()` overload"]
79 fn has_instantiated_profile(self) -> bool {
80 unsafe {
81 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x33e4c80usize)as*mut u8,bool;
83(Volume)__receiver)
84 }
85 }
86 #[doc = "`OnEnable()` overload"]
87 fn on_enable(self) -> () {
88 unsafe {
89 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x33e4d00usize)as*mut u8,();
91(Volume)__receiver)
92 }
93 }
94 #[doc = "`OnDisable()` overload"]
95 fn on_disable(self) -> () {
96 unsafe {
97 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x33e5040usize)as*mut u8,();
99(Volume)__receiver)
100 }
101 }
102 #[doc = "`Update()` overload"]
103 fn update(self) -> () {
104 unsafe {
105 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x33e52c0usize)as*mut u8,();
107(Volume)__receiver)
108 }
109 }
110 #[doc = "`UpdateLayer()` overload"]
111 fn update_layer(self) -> () {
112 unsafe {
113 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x33e53e0usize)as*mut u8,();
115(Volume)__receiver)
116 }
117 }
118 #[doc = "`.ctor()` overload"]
119 fn ctor(self) -> () {
120 unsafe {
121 let __receiver = <Volume as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x33e5690usize)as*mut u8,();
123(Volume)__receiver)
124 }
125 }
126}
127
128#[cfg(feature = "unity_engine-rendering-volume")]
129impl<__T: IVolume> IVolumeMethods for __T {}
130
131#[cfg(feature = "unity_engine-rendering-volume")]
132impl Volume {
133 pub fn get_profile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
135 }
136
137 pub fn set_profile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
139 }
140
141 pub fn get_profile_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
143 }
144
145 pub fn has_instantiated_profile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
147 }
148
149 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
151 }
152
153 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
155 }
156
157 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
159 }
160
161 pub fn update_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
163 }
164
165 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
167 }
168}
169
170#[cfg(feature = "unity_engine-rendering-volume")]
171impl Volume {
172 #[doc = "`.ctor()` — no args"]
173 pub fn new() -> Self {
174 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
175 panic!(
176 "{}
177::{}
178 failed to instantiate",
179 ::core::stringify!(Volume),
180 ::core::stringify!(new),
181 )
182 });
183 <Self as IVolumeMethods>::ctor(this);
184 this
185 }
186}
187
188#[cfg(feature = "unity_engine-rendering-volume")]
189#[doc(hidden)]
190pub mod prelude {
191 pub use super::{IVolume, IVolumeMethods, Volume};
192 #[cfg(feature = "system-object")]
193 pub use crate::system::object::IObjectMethods;
194 #[cfg(feature = "unity_engine-behaviour")]
195 pub use crate::unity_engine::behaviour::IBehaviourMethods;
196 #[cfg(feature = "unity_engine-component")]
197 pub use crate::unity_engine::component::IComponentMethods;
198 #[cfg(feature = "unity_engine-monobehaviour")]
199 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
200 #[cfg(feature = "unity_engine-object_2")]
201 pub use crate::unity_engine::object_2::IObject_2Methods;
202 pub use crate::{
203 system::object::IObject,
204 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
205 };
206}