engage/generated/unity_engine/experimental/rendering/universal/
shadowcaster2d.rs1#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcaster2d-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/shadowcaster2d/ShadowCaster2D.md"))]
20 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "ShadowCaster2D")]
21 #[parent(crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D)]
22 pub struct ShadowCaster2D {
23 #[offset(40)]
24 #[rename(name = "m_HasRenderer")]
25 pub m_has_renderer: bool,
26 #[offset(41)]
27 #[rename(name = "m_UseRendererSilhouette")]
28 pub m_use_renderer_silhouette: bool,
29 #[offset(42)]
30 #[rename(name = "m_CastsShadows")]
31 pub m_casts_shadows: bool,
32 #[offset(43)]
33 #[rename(name = "m_SelfShadows")]
34 pub m_self_shadows: bool,
35 #[offset(48)]
36 #[rename(name = "m_ApplyToSortingLayers")]
37 pub m_apply_to_sorting_layers: ::unity::Array<i32>,
38 #[offset(56)]
39 #[rename(name = "m_ShapePath")]
40 pub m_shape_path: ::unity::Array<crate::unity_engine::vector3::Vector3>,
41 #[offset(64)]
42 #[rename(name = "m_ShapePathHash")]
43 pub m_shape_path_hash: i32,
44 #[offset(72)]
45 #[rename(name = "m_Mesh")]
46 pub m_mesh: crate::unity_engine::mesh::Mesh,
47 #[offset(80)]
48 #[rename(name = "m_InstanceId")]
49 pub m_instance_id: i32,
50 #[offset(88)]
51 #[rename(name = "m_ShadowCasterGroup")]
52 pub m_shadow_caster_group: crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D,
53 #[offset(96)]
54 #[rename(name = "m_PreviousShadowCasterGroup")]
55 pub m_previous_shadow_caster_group: crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::ShadowCasterGroup2D,
56 #[offset(104)]
57 #[rename(name = "m_PreviousShadowGroup")]
58 pub m_previous_shadow_group: i32,
59 #[offset(108)]
60 #[rename(name = "m_PreviousCastsShadows")]
61 pub m_previous_casts_shadows: bool,
62 #[offset(112)]
63 #[rename(name = "m_PreviousPathHash")]
64 pub m_previous_path_hash: i32,
65 }
66}
67
68#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcaster2d-types")]
69pub use __types::*;
70
71#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcaster2d")]
72impl ShadowCaster2D {
73 #[doc = "`SetDefaultSortingLayers()` overload"]
74 pub fn set_default_sorting_layers() -> ::unity::Array<i32> {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8680usize)as*mut u8, ::unity::Array<i32> ;
77 )
78 }
79 }
80}
81
82#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcaster2d")]
83pub trait IShadowCaster2DMethods: IShadowCaster2D {
84 #[doc = "`get_mesh()` overload"]
85 fn get_mesh(self) -> crate::unity_engine::mesh::Mesh {
86 unsafe {
87 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x2ed85d0usize)as*mut u8,crate::unity_engine::mesh::Mesh;
89(ShadowCaster2D)__receiver)
90 }
91 }
92 #[doc = "`get_shapePath()` overload"]
93 fn get_shape_path(self) -> ::unity::Array<crate::unity_engine::vector3::Vector3> {
94 unsafe {
95 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x2ed85e0usize)as*mut u8, ::unity::Array<crate::unity_engine::vector3::Vector3> ;
97(ShadowCaster2D)__receiver)
98 }
99 }
100 #[doc = "`get_shapePathHash()` overload"]
101 fn get_shape_path_hash(self) -> i32 {
102 unsafe {
103 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x2ed85f0usize)as*mut u8,i32;
105(ShadowCaster2D)__receiver)
106 }
107 }
108 #[doc = "`set_shapePathHash(i32)` overload"]
109 fn set_shape_path_hash(self, value: impl ::core::convert::Into<i32>) -> () {
110 unsafe {
111 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8600usize)as*mut u8,();
113(ShadowCaster2D)__receiver,(i32)::core::convert::Into::into(value))
114 }
115 }
116 #[doc = "`set_useRendererSilhouette(bool)` overload"]
117 fn set_use_renderer_silhouette(self, value: impl ::core::convert::Into<bool>) -> () {
118 unsafe {
119 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8610usize)as*mut u8,();
121(ShadowCaster2D)__receiver,(bool)::core::convert::Into::into(value))
122 }
123 }
124 #[doc = "`get_useRendererSilhouette()` overload"]
125 fn get_use_renderer_silhouette(self) -> bool {
126 unsafe {
127 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8620usize)as*mut u8,bool;
129(ShadowCaster2D)__receiver)
130 }
131 }
132 #[doc = "`set_selfShadows(bool)` overload"]
133 fn set_self_shadows(self, value: impl ::core::convert::Into<bool>) -> () {
134 unsafe {
135 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8640usize)as*mut u8,();
137(ShadowCaster2D)__receiver,(bool)::core::convert::Into::into(value))
138 }
139 }
140 #[doc = "`get_selfShadows()` overload"]
141 fn get_self_shadows(self) -> bool {
142 unsafe {
143 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8650usize)as*mut u8,bool;
145(ShadowCaster2D)__receiver)
146 }
147 }
148 #[doc = "`set_castsShadows(bool)` overload"]
149 fn set_casts_shadows(self, value: impl ::core::convert::Into<bool>) -> () {
150 unsafe {
151 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8660usize)as*mut u8,();
153(ShadowCaster2D)__receiver,(bool)::core::convert::Into::into(value))
154 }
155 }
156 #[doc = "`get_castsShadows()` overload"]
157 fn get_casts_shadows(self) -> bool {
158 unsafe {
159 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8670usize)as*mut u8,bool;
161(ShadowCaster2D)__receiver)
162 }
163 }
164 #[doc = "`IsShadowedLayer(i32)` overload"]
165 fn is_shadowed_layer(self, layer: impl ::core::convert::Into<i32>) -> bool {
166 unsafe {
167 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8750usize)as*mut u8,bool;
169(ShadowCaster2D)__receiver,(i32)::core::convert::Into::into(layer))
170 }
171 }
172 #[doc = "`Awake()` overload"]
173 fn awake(self) -> () {
174 unsafe {
175 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 ::unity::il2cpp_call!((::unity::module_base()+0x2ed87c0usize)as*mut u8,();
177(ShadowCaster2D)__receiver)
178 }
179 }
180 #[doc = "`OnEnable()` overload"]
181 fn on_enable(self) -> () {
182 unsafe {
183 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8b00usize)as*mut u8,();
185(ShadowCaster2D)__receiver)
186 }
187 }
188 #[doc = "`OnDisable()` overload"]
189 fn on_disable(self) -> () {
190 unsafe {
191 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x2ed95e0usize)as*mut u8,();
193(ShadowCaster2D)__receiver)
194 }
195 }
196 #[doc = "`Update()` overload"]
197 fn update(self) -> () {
198 unsafe {
199 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x2ed97c0usize)as*mut u8,();
201(ShadowCaster2D)__receiver)
202 }
203 }
204 #[doc = "`.ctor()` overload"]
205 fn ctor(self) -> () {
206 unsafe {
207 let __receiver = <ShadowCaster2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x2ed9fe0usize)as*mut u8,();
209(ShadowCaster2D)__receiver)
210 }
211 }
212}
213
214#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcaster2d")]
215impl<__T: IShadowCaster2D> IShadowCaster2DMethods for __T {}
216
217#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcaster2d")]
218impl ShadowCaster2D {
219 pub fn get_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
221 }
222
223 pub fn get_shape_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
225 }
226
227 pub fn get_shape_path_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
229 }
230
231 pub fn set_shape_path_hash_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
233 }
234
235 pub fn set_use_renderer_silhouette_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
237 }
238
239 pub fn get_use_renderer_silhouette_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
241 }
242
243 pub fn set_self_shadows_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
245 }
246
247 pub fn get_self_shadows_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
249 }
250
251 pub fn set_casts_shadows_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
253 }
254
255 pub fn get_casts_shadows_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
257 }
258
259 pub fn set_default_sorting_layers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
261 }
262
263 pub fn is_shadowed_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
265 }
266
267 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
269 }
270
271 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
273 }
274
275 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
277 }
278
279 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
281 }
282
283 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
285 }
286}
287
288#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcaster2d")]
289impl ShadowCaster2D {
290 #[doc = "`.ctor()` — no args"]
291 pub fn new() -> Self {
292 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
293 panic!(
294 "{}
295::{}
296 failed to instantiate",
297 ::core::stringify!(ShadowCaster2D),
298 ::core::stringify!(new),
299 )
300 });
301 <Self as IShadowCaster2DMethods>::ctor(this);
302 this
303 }
304}
305
306#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcaster2d")]
307#[doc(hidden)]
308pub mod prelude {
309 pub use super::{IShadowCaster2D, IShadowCaster2DMethods, ShadowCaster2D};
310 #[cfg(feature = "system-object")]
311 pub use crate::system::object::IObjectMethods;
312 #[cfg(feature = "unity_engine-behaviour")]
313 pub use crate::unity_engine::behaviour::IBehaviourMethods;
314 #[cfg(feature = "unity_engine-component")]
315 pub use crate::unity_engine::component::IComponentMethods;
316 #[cfg(feature = "unity_engine-experimental-rendering-universal-shadowcastergroup2d")]
317 pub use crate::unity_engine::experimental::rendering::universal::shadowcastergroup2d::IShadowCasterGroup2DMethods;
318 #[cfg(feature = "unity_engine-monobehaviour")]
319 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
320 #[cfg(feature = "unity_engine-object_2")]
321 pub use crate::unity_engine::object_2::IObject_2Methods;
322 pub use crate::{
323 system::object::IObject,
324 unity_engine::{
325 behaviour::IBehaviour, component::IComponent, experimental::rendering::universal::shadowcastergroup2d::IShadowCasterGroup2D,
326 monobehaviour::IMonoBehaviour, object_2::IObject_2,
327 },
328 };
329}