Skip to main content

engage/generated/unity_engine/experimental/global_illumination/
spotlight.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-global_illumination-spotlight-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/global_illumination/spotlight/SpotLight.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct SpotLight {
17        pub instance_id: i32,
18        pub shadow: bool,
19        pub mode: crate::unity_engine::experimental::global_illumination::lightmode::LightMode,
20        pub position: crate::unity_engine::vector3::Vector3,
21        pub orientation: crate::unity_engine::quaternion::Quaternion,
22        pub color: crate::unity_engine::experimental::global_illumination::linearcolor::LinearColor,
23        pub indirect_color: crate::unity_engine::experimental::global_illumination::linearcolor::LinearColor,
24        pub range: f32,
25        pub sphere_radius: f32,
26        pub cone_angle: f32,
27        pub inner_cone_angle: f32,
28        pub falloff: crate::unity_engine::experimental::global_illumination::fallofftype::FalloffType,
29        pub angular_falloff: crate::unity_engine::experimental::global_illumination::angularfallofftype::AngularFalloffType,
30    }
31    impl ::unity::ClassIdentity for SpotLight {
32        const NAME: &'static str = "SpotLight";
33        const NAMESPACE: &'static str = "UnityEngine.Experimental.GlobalIllumination";
34
35        fn class() -> ::unity::Class {
36            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
37            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
38        }
39    }
40    impl ::unity::IlType for SpotLight {
41        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
42            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
43        }
44    }
45}
46
47#[cfg(feature = "unity_engine-experimental-global_illumination-spotlight-types")]
48pub use __types::*;
49
50#[cfg(feature = "unity_engine-experimental-global_illumination-spotlight")]
51#[doc(hidden)]
52pub mod prelude {
53    pub use super::SpotLight;
54    #[cfg(feature = "system-object")]
55    pub use crate::system::object::IObjectMethods;
56    #[cfg(feature = "system-valuetype")]
57    pub use crate::system::valuetype::IValueTypeMethods;
58    pub use crate::system::{object::IObject, valuetype::IValueType};
59}