Skip to main content

engage/generated/unity_engine/rendering/
cameraswitcher.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-cameraswitcher-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/cameraswitcher/CameraSwitcher.md"))]
19    #[::unity::class(namespace = "UnityEngine.Rendering", name = "CameraSwitcher")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct CameraSwitcher {
22        #[offset(24)]
23        #[rename(name = "m_Cameras")]
24        pub m_cameras: ::unity::Array<crate::unity_engine::camera::Camera>,
25        #[offset(32)]
26        #[rename(name = "m_CurrentCameraIndex")]
27        pub m_current_camera_index: i32,
28        #[offset(40)]
29        #[rename(name = "m_OriginalCamera")]
30        pub m_original_camera: crate::unity_engine::camera::Camera,
31        #[offset(48)]
32        #[rename(name = "m_OriginalCameraPosition")]
33        pub m_original_camera_position: crate::unity_engine::vector3::Vector3,
34        #[offset(60)]
35        #[rename(name = "m_OriginalCameraRotation")]
36        pub m_original_camera_rotation: crate::unity_engine::quaternion::Quaternion,
37        #[offset(80)]
38        #[rename(name = "m_CurrentCamera")]
39        pub m_current_camera: crate::unity_engine::camera::Camera,
40        #[offset(88)]
41        #[rename(name = "m_CameraNames")]
42        pub m_camera_names: ::unity::Array<crate::unity_engine::guicontent::GUIContent>,
43        #[offset(96)]
44        #[rename(name = "m_CameraIndices")]
45        pub m_camera_indices: ::unity::Array<i32>,
46        #[offset(104)]
47        #[rename(name = "m_DebugEntry")]
48        pub m_debug_entry: crate::unity_engine::rendering::debugui::DebugUI_EnumField,
49        #[offset(112)]
50        #[rename(name = "m_DebugEntryEnumIndex")]
51        pub m_debug_entry_enum_index: i32,
52    }
53}
54
55#[cfg(feature = "unity_engine-rendering-cameraswitcher-types")]
56pub use __types::*;
57
58#[cfg(feature = "unity_engine-rendering-cameraswitcher")]
59pub trait ICameraSwitcherMethods: ICameraSwitcher {
60    #[doc = "`OnEnable()` overload"]
61    fn on_enable(self) -> () {
62        unsafe {
63            let __receiver = <CameraSwitcher as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x352e810usize)as*mut u8,();
65(CameraSwitcher)__receiver)
66        }
67    }
68    #[doc = "`OnDisable()` overload"]
69    fn on_disable(self) -> () {
70        unsafe {
71            let __receiver = <CameraSwitcher as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x352f210usize)as*mut u8,();
73(CameraSwitcher)__receiver)
74        }
75    }
76    #[doc = "`GetCameraCount()` overload"]
77    fn get_camera_count(self) -> i32 {
78        unsafe {
79            let __receiver = <CameraSwitcher as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x352ee90usize)as*mut u8,i32;
81(CameraSwitcher)__receiver)
82        }
83    }
84    #[doc = "`GetNextCamera()` overload"]
85    fn get_next_camera(self) -> crate::unity_engine::camera::Camera {
86        unsafe {
87            let __receiver = <CameraSwitcher as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x352f2a0usize)as*mut u8,crate::unity_engine::camera::Camera;
89(CameraSwitcher)__receiver)
90        }
91    }
92    #[doc = "`SetCameraIndex(i32)` overload"]
93    fn set_camera_index(self, index: impl ::core::convert::Into<i32>) -> () {
94        unsafe {
95            let __receiver = <CameraSwitcher as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x352f2f0usize)as*mut u8,();
97(CameraSwitcher)__receiver,(i32)::core::convert::Into::into(index))
98        }
99    }
100    #[doc = "`.ctor()` overload"]
101    fn ctor(self) -> () {
102        unsafe {
103            let __receiver = <CameraSwitcher as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x352f530usize)as*mut u8,();
105(CameraSwitcher)__receiver)
106        }
107    }
108}
109
110#[cfg(feature = "unity_engine-rendering-cameraswitcher")]
111impl<__T: ICameraSwitcher> ICameraSwitcherMethods for __T {}
112
113#[cfg(feature = "unity_engine-rendering-cameraswitcher")]
114impl CameraSwitcher {
115    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117    }
118
119    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121    }
122
123    pub fn get_camera_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125    }
126
127    pub fn get_next_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129    }
130
131    pub fn set_camera_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
133    }
134
135    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
137    }
138}
139
140#[cfg(feature = "unity_engine-rendering-cameraswitcher")]
141impl CameraSwitcher {
142    #[doc = "`.ctor()` — no args"]
143    pub fn new() -> Self {
144        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
145            panic!(
146                "{}
147::{}
148 failed to instantiate",
149                ::core::stringify!(CameraSwitcher),
150                ::core::stringify!(new),
151            )
152        });
153        <Self as ICameraSwitcherMethods>::ctor(this);
154        this
155    }
156}
157
158#[cfg(feature = "unity_engine-rendering-cameraswitcher")]
159#[doc(hidden)]
160pub mod prelude {
161    pub use super::{CameraSwitcher, ICameraSwitcher, ICameraSwitcherMethods};
162    #[cfg(feature = "system-object")]
163    pub use crate::system::object::IObjectMethods;
164    #[cfg(feature = "unity_engine-behaviour")]
165    pub use crate::unity_engine::behaviour::IBehaviourMethods;
166    #[cfg(feature = "unity_engine-component")]
167    pub use crate::unity_engine::component::IComponentMethods;
168    #[cfg(feature = "unity_engine-monobehaviour")]
169    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
170    #[cfg(feature = "unity_engine-object_2")]
171    pub use crate::unity_engine::object_2::IObject_2Methods;
172    pub use crate::{
173        system::object::IObject,
174        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
175    };
176}