engage/generated/unity_engine/experimental/rendering/universal/
compositeshadowcaster2d.rs1#[cfg(feature = "unity_engine-experimental-rendering-universal-compositeshadowcaster2d-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 experimental::rendering::universal::shadowcastergroup2d::{IShadowCasterGroup2D, ShadowCasterGroup2D},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/compositeshadowcaster2d/CompositeShadowCaster2D.md"))]
20 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "CompositeShadowCaster2D")]
21 #[parent(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)]
22 pub struct CompositeShadowCaster2D {}
23}
24
25#[cfg(feature = "unity_engine-experimental-rendering-universal-compositeshadowcaster2d-types")]
26pub use __types::*;
27
28#[cfg(feature = "unity_engine-experimental-rendering-universal-compositeshadowcaster2d")]
29pub trait ICompositeShadowCaster2DMethods: ICompositeShadowCaster2D {
30 #[doc = "`OnEnable()` overload"]
31 fn on_enable(self) -> () {
32 unsafe {
33 let __receiver =
34 <CompositeShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x2a41050usize)as*mut u8,();
36(CompositeShadowCaster2D)__receiver)
37 }
38 }
39 #[doc = "`OnDisable()` overload"]
40 fn on_disable(self) -> () {
41 unsafe {
42 let __receiver =
43 <CompositeShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x2a410c0usize)as*mut u8,();
45(CompositeShadowCaster2D)__receiver)
46 }
47 }
48 #[doc = "`.ctor()` overload"]
49 fn ctor(self) -> () {
50 unsafe {
51 let __receiver =
52 <CompositeShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 ::unity::il2cpp_call!((::unity::module_base()+0x2a41130usize)as*mut u8,();
54(CompositeShadowCaster2D)__receiver)
55 }
56 }
57}
58
59#[cfg(feature = "unity_engine-experimental-rendering-universal-compositeshadowcaster2d")]
60impl<__T: ICompositeShadowCaster2D> ICompositeShadowCaster2DMethods for __T {}
61
62#[cfg(feature = "unity_engine-experimental-rendering-universal-compositeshadowcaster2d")]
63impl CompositeShadowCaster2D {
64 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
66 }
67
68 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
70 }
71
72 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
74 }
75}
76
77#[cfg(feature = "unity_engine-experimental-rendering-universal-compositeshadowcaster2d")]
78impl CompositeShadowCaster2D {
79 #[doc = "`.ctor()` — no args"]
80 pub fn new() -> Self {
81 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
82 panic!(
83 "{}
84::{}
85 failed to instantiate",
86 ::core::stringify!(CompositeShadowCaster2D),
87 ::core::stringify!(new),
88 )
89 });
90 <Self as ICompositeShadowCaster2DMethods>::ctor(this);
91 this
92 }
93}
94
95#[cfg(feature = "unity_engine-experimental-rendering-universal-compositeshadowcaster2d")]
96#[doc(hidden)]
97pub mod prelude {
98 pub use super::{CompositeShadowCaster2D, ICompositeShadowCaster2D, ICompositeShadowCaster2DMethods};
99 #[cfg(feature = "system-object")]
100 pub use crate::system::object::IObjectMethods;
101 #[cfg(feature = "unity_engine-behaviour")]
102 pub use crate::unity_engine::behaviour::IBehaviourMethods;
103 #[cfg(feature = "unity_engine-component")]
104 pub use crate::unity_engine::component::IComponentMethods;
105 #[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d")]
106 pub use crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::IShadowCasterGroup2DMethods;
107 #[cfg(feature = "unity_engine-monobehaviour")]
108 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
109 #[cfg(feature = "unity_engine-object_2")]
110 pub use crate::unity_engine::object_2::IObject_2Methods;
111 pub use crate::{
112 system::object::IObject,
113 unity_engine::{
114 behaviour::IBehaviour, component::IComponent, experimental::rendering::universal::shadowcastergroup2d::IShadowCasterGroup2D,
115 monobehaviour::IMonoBehaviour, object_2::IObject_2,
116 },
117 };
118}