engage/generated/root/
cinemachinecameraoffset.rs1#[cfg(feature = "root-cinemachinecameraoffset-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/root/cinemachinecameraoffset/CinemachineCameraOffset.md"))]
10 #[::unity::class(namespace = "", name = "CinemachineCameraOffset")]
11 pub struct CinemachineCameraOffset {
12 #[offset(40)]
13 #[rename(name = "m_Offset")]
14 pub m_offset: crate::unity_engine::vector3::Vector3,
15 #[offset(56)]
16 #[rename(name = "m_PreserveComposition")]
17 pub m_preserve_composition: bool,
18 }
19}
20
21#[cfg(feature = "root-cinemachinecameraoffset-types")]
22pub use __types::*;
23
24#[cfg(feature = "root-cinemachinecameraoffset")]
25pub trait ICinemachineCameraOffsetMethods: ICinemachineCameraOffset {
26 #[doc = "`.ctor()` overload"]
27 fn ctor(self) -> () {
28 unsafe {
29 let __receiver =
30 <CinemachineCameraOffset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31 ::unity::il2cpp_call!((::unity::module_base()+0x37ab010usize)as*mut u8,();
32(CinemachineCameraOffset)__receiver)
33 }
34 }
35}
36
37#[cfg(feature = "root-cinemachinecameraoffset")]
38impl<__T: ICinemachineCameraOffset> ICinemachineCameraOffsetMethods for __T {}
39
40#[cfg(feature = "root-cinemachinecameraoffset")]
41impl CinemachineCameraOffset {
42 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
44 }
45}
46
47#[cfg(feature = "root-cinemachinecameraoffset")]
48impl CinemachineCameraOffset {
49 #[doc = "`.ctor()` — no args"]
50 pub fn new() -> Self {
51 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
52 panic!(
53 "{}
54::{}
55 failed to instantiate",
56 ::core::stringify!(CinemachineCameraOffset),
57 ::core::stringify!(new),
58 )
59 });
60 <Self as ICinemachineCameraOffsetMethods>::ctor(this);
61 this
62 }
63}
64
65#[cfg(feature = "root-cinemachinecameraoffset")]
66#[doc(hidden)]
67pub mod prelude {
68 pub use super::{CinemachineCameraOffset, ICinemachineCameraOffset, ICinemachineCameraOffsetMethods};
69}