engage/generated/unity_engine/rendering/
volumecomponent.rs1#[cfg(feature = "unity_engine-rendering-volumecomponent-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/volumecomponent/VolumeComponent.md"))]
17 #[::unity::class(namespace = "UnityEngine.Rendering", name = "VolumeComponent")]
18 #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19 pub struct VolumeComponent {
20 #[offset(24)]
21 #[rename(name = "active")]
22 pub active: bool,
23 #[offset(48)]
24 #[rename(name = "m_AdvancedMode")]
25 pub m_advanced_mode: bool,
26 }
27}
28
29#[cfg(feature = "unity_engine-rendering-volumecomponent-types")]
30pub use __types::*;
31
32#[cfg(feature = "unity_engine-rendering-volumecomponent")]
33pub trait IVolumeComponentMethods: IVolumeComponent {
34 #[doc = "`get_displayName()` overload"]
35 fn get_display_name(self) -> ::unity::Il2CppString {
36 unsafe {
37 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x33e56b0usize)as*mut u8, ::unity::Il2CppString;
39(VolumeComponent)__receiver)
40 }
41 }
42 #[doc = "`set_displayName(::unity::Il2CppString)` overload"]
43 fn set_display_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
44 unsafe {
45 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x33e56c0usize)as*mut u8,();
47(VolumeComponent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
48 }
49 }
50 #[doc = "`get_parameters()` overload"]
51 fn get_parameters(
52 self,
53 ) -> crate::system::collections::object_model::readonlycollection_1::ReadOnlyCollection_1<
54 crate::unity_engine::rendering::volumeparameter::VolumeParameter,
55 > {
56 unsafe {
57 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x33e56d0usize)as*mut u8,crate::system::collections::object_model::readonlycollection_1::ReadOnlyCollection_1<crate::unity_engine::rendering::volumeparameter::VolumeParameter> ;
59(VolumeComponent)__receiver)
60 }
61 }
62 #[doc = "`set_parameters(crate::system::collections::object_model::readonlycollection_1::ReadOnlyCollection_1<crate::unity_engine::rendering::volumeparameter::VolumeParameter>)` overload"]
63 fn set_parameters(
64 self,
65 value: impl ::core::convert::Into<
66 crate::system::collections::object_model::readonlycollection_1::ReadOnlyCollection_1<
67 crate::unity_engine::rendering::volumeparameter::VolumeParameter,
68 >,
69 >,
70 ) -> () {
71 unsafe {
72 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x33e56e0usize)as*mut u8,();
74(VolumeComponent)__receiver,(crate::system::collections::object_model::readonlycollection_1::ReadOnlyCollection_1<crate::unity_engine::rendering::volumeparameter::VolumeParameter>)::core::convert::Into::into(value))
75 }
76 }
77 #[doc = "`OnEnable()` overload"]
78 fn on_enable(self) -> () {
79 unsafe {
80 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 {
82 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
83 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
84 panic!(
85 "unity: virtual slot {}
86 out of range (vtable len {}
87) on the runtime class behind {}
88 (method `{}
89`)",
90 4usize,
91 __vt.len(),
92 <VolumeComponent as ::unity::ClassIdentity>::NAME,
93 "OnEnable",
94 )
95 });
96 let __inner: extern "C" fn(VolumeComponent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
97 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
98 __inner(__receiver, __mi)
99 }
100 }
101 }
102 #[doc = "`OnDisable()` overload"]
103 fn on_disable(self) -> () {
104 unsafe {
105 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 5usize,
116 __vt.len(),
117 <VolumeComponent as ::unity::ClassIdentity>::NAME,
118 "OnDisable",
119 )
120 });
121 let __inner: extern "C" fn(VolumeComponent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
122 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123 __inner(__receiver, __mi)
124 }
125 }
126 }
127 #[doc = "`Override(crate::unity_engine::rendering::volumecomponent::VolumeComponent, f32)` overload"]
128 fn r#override(
129 self,
130 state: impl ::core::convert::Into<crate::unity_engine::rendering::volumecomponent::VolumeComponent>,
131 interp_factor: impl ::core::convert::Into<f32>,
132 ) -> () {
133 unsafe {
134 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 {
136 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
137 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
138 panic!(
139 "unity: virtual slot {}
140 out of range (vtable len {}
141) on the runtime class behind {}
142 (method `{}
143`)",
144 6usize,
145 __vt.len(),
146 <VolumeComponent as ::unity::ClassIdentity>::NAME,
147 "Override",
148 )
149 });
150 let __inner: extern "C" fn(
151 VolumeComponent,
152 crate::unity_engine::rendering::volumecomponent::VolumeComponent,
153 f32,
154 ::unity::OptionalMethod,
155 ) -> () = ::core::mem::transmute(__vi.method_ptr);
156 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
157 __inner(
158 __receiver,
159 ::core::convert::Into::into(state),
160 ::core::convert::Into::into(interp_factor),
161 __mi,
162 )
163 }
164 }
165 }
166 #[doc = "`SetAllOverridesTo(bool)` overload"]
167 fn set_all_overrides_to(self, state: impl ::core::convert::Into<bool>) -> () {
168 unsafe {
169 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x33e6020usize)as*mut u8,();
171(VolumeComponent)__receiver,(bool)::core::convert::Into::into(state))
172 }
173 }
174 #[doc = "`SetAllOverridesTo(crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::rendering::volumeparameter::VolumeParameter>, bool)` overload"]
175 fn set_all_overrides_to_2(
176 self,
177 enumerable: impl ::core::convert::Into<
178 crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::rendering::volumeparameter::VolumeParameter>,
179 >,
180 state: impl ::core::convert::Into<bool>,
181 ) -> () {
182 unsafe {
183 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x33e6030usize)as*mut u8,();
185(VolumeComponent)__receiver,(crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::rendering::volumeparameter::VolumeParameter>)::core::convert::Into::into(enumerable),(bool)::core::convert::Into::into(state))
186 }
187 }
188 #[doc = "`GetHashCode()` overload"]
189 fn get_hash_code(self) -> i32 {
190 unsafe {
191 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 {
193 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
194 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
195 panic!(
196 "unity: virtual slot {}
197 out of range (vtable len {}
198) on the runtime class behind {}
199 (method `{}
200`)",
201 2usize,
202 __vt.len(),
203 <VolumeComponent as ::unity::ClassIdentity>::NAME,
204 "GetHashCode",
205 )
206 });
207 let __inner: extern "C" fn(VolumeComponent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
208 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
209 __inner(__receiver, __mi)
210 }
211 }
212 }
213 #[doc = "`OnDestroy()` overload"]
214 fn on_destroy(self) -> () {
215 unsafe {
216 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217 {
218 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
219 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
220 panic!(
221 "unity: virtual slot {}
222 out of range (vtable len {}
223) on the runtime class behind {}
224 (method `{}
225`)",
226 7usize,
227 __vt.len(),
228 <VolumeComponent as ::unity::ClassIdentity>::NAME,
229 "OnDestroy",
230 )
231 });
232 let __inner: extern "C" fn(VolumeComponent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
233 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
234 __inner(__receiver, __mi)
235 }
236 }
237 }
238 #[doc = "`Release()` overload"]
239 fn release(self) -> () {
240 unsafe {
241 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242 ::unity::il2cpp_call!((::unity::module_base()+0x33e65e0usize)as*mut u8,();
243(VolumeComponent)__receiver)
244 }
245 }
246 #[doc = "`.ctor()` overload"]
247 fn ctor(self) -> () {
248 unsafe {
249 let __receiver = <VolumeComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250 ::unity::il2cpp_call!((::unity::module_base()+0x33e66b0usize)as*mut u8,();
251(VolumeComponent)__receiver)
252 }
253 }
254}
255
256#[cfg(feature = "unity_engine-rendering-volumecomponent")]
257impl<__T: IVolumeComponent> IVolumeComponentMethods for __T {}
258
259#[cfg(feature = "unity_engine-rendering-volumecomponent")]
260impl VolumeComponent {
261 pub fn get_display_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
263 }
264
265 pub fn set_display_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
267 }
268
269 pub fn get_parameters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
271 }
272
273 pub fn set_parameters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
275 }
276
277 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
279 }
280
281 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
283 }
284
285 pub fn override_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
287 }
288
289 pub fn set_all_overrides_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
291 }
292
293 pub fn set_all_overrides_to_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
295 }
296
297 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
299 }
300
301 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
303 }
304
305 pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
307 }
308
309 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
311 }
312}
313
314#[cfg(feature = "unity_engine-rendering-volumecomponent")]
315impl VolumeComponent {
316 #[doc = "Direct (non-virtual) call to `VolumeComponent`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
317 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
318 let __mi = Self::on_enable_method_info();
319 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
320 __inner(this.into(), ::core::option::Option::None)
321 }
322
323 #[doc = "Direct (non-virtual) call to `VolumeComponent`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
324 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
325 let __mi = Self::on_disable_method_info();
326 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
327 __inner(this.into(), ::core::option::Option::None)
328 }
329
330 #[doc = "Direct (non-virtual) call to `VolumeComponent`'s own `Override`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
331 pub unsafe fn r#override(
332 this: impl ::core::convert::Into<::unity::IlInstance>,
333 state: crate::unity_engine::rendering::volumecomponent::VolumeComponent,
334 interp_factor: f32,
335 ) -> () {
336 let __mi = Self::override_method_info();
337 let __inner: extern "C" fn(
338 ::unity::IlInstance,
339 crate::unity_engine::rendering::volumecomponent::VolumeComponent,
340 f32,
341 ::unity::OptionalMethod,
342 ) -> () = ::core::mem::transmute(__mi.method_ptr);
343 __inner(this.into(), state, interp_factor, ::core::option::Option::None)
344 }
345
346 #[doc = "Direct (non-virtual) call to `VolumeComponent`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
347 pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
348 let __mi = Self::get_hash_code_method_info();
349 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
350 __inner(this.into(), ::core::option::Option::None)
351 }
352
353 #[doc = "Direct (non-virtual) call to `VolumeComponent`'s own `OnDestroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
354 pub unsafe fn on_destroy(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
355 let __mi = Self::on_destroy_method_info();
356 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
357 __inner(this.into(), ::core::option::Option::None)
358 }
359}
360
361#[cfg(feature = "unity_engine-rendering-volumecomponent")]
362impl VolumeComponent {
363 #[doc = "`.ctor()` — no args"]
364 pub fn new() -> Self {
365 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
366 panic!(
367 "{}
368::{}
369 failed to instantiate",
370 ::core::stringify!(VolumeComponent),
371 ::core::stringify!(new),
372 )
373 });
374 <Self as IVolumeComponentMethods>::ctor(this);
375 this
376 }
377}
378
379#[cfg(feature = "unity_engine-rendering-volumecomponent")]
380#[doc(hidden)]
381pub mod prelude {
382 pub use super::{IVolumeComponent, IVolumeComponentMethods, VolumeComponent};
383 #[cfg(feature = "system-object")]
384 pub use crate::system::object::IObjectMethods;
385 #[cfg(feature = "unity_engine-object_2")]
386 pub use crate::unity_engine::object_2::IObject_2Methods;
387 #[cfg(feature = "unity_engine-scriptableobject")]
388 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
389 pub use crate::{
390 system::object::IObject,
391 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
392 };
393}