engage/generated/unity_engine/rendering/universal/custom/
customoffscreencamera.rs1#[cfg(feature = "unity_engine-rendering-universal-custom-customoffscreencamera-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/customoffscreencamera/CustomOffscreenCamera.md"))]
19 #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom", name = "CustomOffscreenCamera")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CustomOffscreenCamera {
22 #[offset(24)]
23 #[rename(name = "m_PPVolumeProfile")]
24 pub m_pp_volume_profile: crate::unity_engine::rendering::volumeprofile::VolumeProfile,
25 #[offset(32)]
26 #[rename(name = "m_Camera")]
27 pub m_camera: crate::unity_engine::camera::Camera,
28 #[offset(40)]
29 #[rename(name = "m_AdditionalCameraData")]
30 pub m_additional_camera_data: crate::unity_engine::rendering::universal::universaladditionalcameradata::UniversalAdditionalCameraData,
31 }
32}
33
34#[cfg(feature = "unity_engine-rendering-universal-custom-customoffscreencamera-types")]
35pub use __types::*;
36
37#[cfg(feature = "unity_engine-rendering-universal-custom-customoffscreencamera")]
38pub trait ICustomOffscreenCameraMethods: ICustomOffscreenCamera {
39 #[doc = "`get_profile()` overload"]
40 fn get_profile(self) -> crate::unity_engine::rendering::volumeprofile::VolumeProfile {
41 unsafe {
42 let __receiver = <CustomOffscreenCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x2a4d2d0usize)as*mut u8,crate::unity_engine::rendering::volumeprofile::VolumeProfile;
44(CustomOffscreenCamera)__receiver)
45 }
46 }
47 #[doc = "`OnEnable()` overload"]
48 fn on_enable(self) -> () {
49 unsafe {
50 let __receiver = <CustomOffscreenCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2a4d2e0usize)as*mut u8,();
52(CustomOffscreenCamera)__receiver)
53 }
54 }
55 #[doc = "`OnDisable()` overload"]
56 fn on_disable(self) -> () {
57 unsafe {
58 let __receiver = <CustomOffscreenCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x2a4d4a0usize)as*mut u8,();
60(CustomOffscreenCamera)__receiver)
61 }
62 }
63 #[doc = "`CustomBeginFrameRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, ::unity::Array<crate::unity_engine::camera::Camera>)` overload"]
64 fn custom_begin_frame_rendering(
65 self,
66 context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
67 cameras: impl ::core::convert::Into<::unity::Array<crate::unity_engine::camera::Camera>>,
68 ) -> () {
69 unsafe {
70 let __receiver = <CustomOffscreenCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x2a4d570usize)as*mut u8,();
72(CustomOffscreenCamera)__receiver,(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(::unity::Array<crate::unity_engine::camera::Camera>)::core::convert::Into::into(cameras))
73 }
74 }
75 #[doc = "`.ctor()` overload"]
76 fn ctor(self) -> () {
77 unsafe {
78 let __receiver = <CustomOffscreenCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x2a4d7b0usize)as*mut u8,();
80(CustomOffscreenCamera)__receiver)
81 }
82 }
83}
84
85#[cfg(feature = "unity_engine-rendering-universal-custom-customoffscreencamera")]
86impl<__T: ICustomOffscreenCamera> ICustomOffscreenCameraMethods for __T {}
87
88#[cfg(feature = "unity_engine-rendering-universal-custom-customoffscreencamera")]
89impl CustomOffscreenCamera {
90 pub fn get_profile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
92 }
93
94 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
96 }
97
98 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
100 }
101
102 pub fn custom_begin_frame_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
104 }
105
106 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
108 }
109}
110
111#[cfg(feature = "unity_engine-rendering-universal-custom-customoffscreencamera")]
112impl CustomOffscreenCamera {
113 #[doc = "`.ctor()` — no args"]
114 pub fn new() -> Self {
115 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
116 panic!(
117 "{}
118::{}
119 failed to instantiate",
120 ::core::stringify!(CustomOffscreenCamera),
121 ::core::stringify!(new),
122 )
123 });
124 <Self as ICustomOffscreenCameraMethods>::ctor(this);
125 this
126 }
127}
128
129#[cfg(feature = "unity_engine-rendering-universal-custom-customoffscreencamera")]
130#[doc(hidden)]
131pub mod prelude {
132 pub use super::{CustomOffscreenCamera, ICustomOffscreenCamera, ICustomOffscreenCameraMethods};
133 #[cfg(feature = "system-object")]
134 pub use crate::system::object::IObjectMethods;
135 #[cfg(feature = "unity_engine-behaviour")]
136 pub use crate::unity_engine::behaviour::IBehaviourMethods;
137 #[cfg(feature = "unity_engine-component")]
138 pub use crate::unity_engine::component::IComponentMethods;
139 #[cfg(feature = "unity_engine-monobehaviour")]
140 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
141 #[cfg(feature = "unity_engine-object_2")]
142 pub use crate::unity_engine::object_2::IObject_2Methods;
143 pub use crate::{
144 system::object::IObject,
145 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
146 };
147}