engage/generated/unity_engine/experimental/rendering/lwrp/
light2d.rs1#[cfg(feature = "unity_engine-experimental-rendering-lwrp-light2d-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/lwrp/light2d/Light2D.md"))]
11 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.LWRP", name = "Light2D")]
12 #[parent(crate::system::object::Object)]
13 pub struct Light2D {}
14}
15
16#[cfg(feature = "unity_engine-experimental-rendering-lwrp-light2d-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-experimental-rendering-lwrp-light2d")]
20pub trait ILight2DMethods: ILight2D {
21 #[doc = "`.ctor()` overload"]
22 fn ctor(self) -> () {
23 unsafe {
24 let __receiver = <Light2D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
25 ::unity::il2cpp_call!((::unity::module_base()+0x2ef1c10usize)as*mut u8,();
26(Light2D)__receiver)
27 }
28 }
29}
30
31#[cfg(feature = "unity_engine-experimental-rendering-lwrp-light2d")]
32impl<__T: ILight2D> ILight2DMethods for __T {}
33
34#[cfg(feature = "unity_engine-experimental-rendering-lwrp-light2d")]
35impl Light2D {
36 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
38 }
39}
40
41#[cfg(feature = "unity_engine-experimental-rendering-lwrp-light2d")]
42impl Light2D {
43 #[doc = "`.ctor()` — no args"]
44 pub fn new() -> Self {
45 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
46 panic!(
47 "{}
48::{}
49 failed to instantiate",
50 ::core::stringify!(Light2D),
51 ::core::stringify!(new),
52 )
53 });
54 <Self as ILight2DMethods>::ctor(this);
55 this
56 }
57}
58
59#[cfg(feature = "unity_engine-experimental-rendering-lwrp-light2d")]
60#[doc(hidden)]
61pub mod prelude {
62 pub use super::{ILight2D, ILight2DMethods, Light2D};
63 pub use crate::system::object::IObject;
64 #[cfg(feature = "system-object")]
65 pub use crate::system::object::IObjectMethods;
66}