engage/generated/unity_engine/rendering/
volumecomponentmenu.rs1#[cfg(feature = "unity_engine-rendering-volumecomponentmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/volumecomponentmenu/VolumeComponentMenu.md"))]
10 #[::unity::class(namespace = "UnityEngine.Rendering", name = "VolumeComponentMenu")]
11 pub struct VolumeComponentMenu {
12 #[offset(16)]
13 #[rename(name = "menu")]
14 pub menu: ::unity::Il2CppString,
15 }
16}
17
18#[cfg(feature = "unity_engine-rendering-volumecomponentmenu-types")]
19pub use __types::*;
20
21#[cfg(feature = "unity_engine-rendering-volumecomponentmenu")]
22pub trait IVolumeComponentMenuMethods: IVolumeComponentMenu {
23 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
24 fn ctor(self, menu: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
25 unsafe {
26 let __receiver = <VolumeComponentMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
27 ::unity::il2cpp_call!((::unity::module_base()+0x33e67d0usize)as*mut u8,();
28(VolumeComponentMenu)__receiver,(::unity::Il2CppString)::core::convert::Into::into(menu))
29 }
30 }
31}
32
33#[cfg(feature = "unity_engine-rendering-volumecomponentmenu")]
34impl<__T: IVolumeComponentMenu> IVolumeComponentMenuMethods for __T {}
35
36#[cfg(feature = "unity_engine-rendering-volumecomponentmenu")]
37impl VolumeComponentMenu {
38 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
39 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
40 }
41}
42
43#[cfg(feature = "unity_engine-rendering-volumecomponentmenu")]
44impl VolumeComponentMenu {
45 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
46 pub fn new(menu: ::unity::Il2CppString) -> Self {
47 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
48 panic!(
49 "{}
50::{}
51 failed to instantiate",
52 ::core::stringify!(VolumeComponentMenu),
53 ::core::stringify!(new),
54 )
55 });
56 <Self as IVolumeComponentMenuMethods>::ctor(this, menu);
57 this
58 }
59}
60
61#[cfg(feature = "unity_engine-rendering-volumecomponentmenu")]
62#[doc(hidden)]
63pub mod prelude {
64 pub use super::{IVolumeComponentMenu, IVolumeComponentMenuMethods, VolumeComponentMenu};
65}