Skip to main content

engage/generated/unity_engine/
skybox.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-skybox-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            object_2::{IObject_2, Object_2},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/skybox/Skybox.md"))]
18    #[::unity::class(namespace = "UnityEngine", name = "Skybox")]
19    #[parent(crate::unity_engine::behaviour::Behaviour)]
20    pub struct Skybox {}
21}
22
23#[cfg(feature = "unity_engine-skybox-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-skybox")]
27pub trait ISkyboxMethods: ISkybox {
28    #[doc = "`get_material()` overload"]
29    fn get_material(self) -> crate::unity_engine::material::Material {
30        unsafe {
31            let __receiver = <Skybox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x2f94510usize)as*mut u8,crate::unity_engine::material::Material;
33(Skybox)__receiver)
34        }
35    }
36    #[doc = "`set_material(crate::unity_engine::material::Material)` overload"]
37    fn set_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
38        unsafe {
39            let __receiver = <Skybox as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x2f94560usize)as*mut u8,();
41(Skybox)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(value))
42        }
43    }
44}
45
46#[cfg(feature = "unity_engine-skybox")]
47impl<__T: ISkybox> ISkyboxMethods for __T {}
48
49#[cfg(feature = "unity_engine-skybox")]
50impl Skybox {
51    pub fn get_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
53    }
54
55    pub fn set_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
57    }
58}
59
60#[cfg(feature = "unity_engine-skybox")]
61#[doc(hidden)]
62pub mod prelude {
63    pub use super::{ISkybox, ISkyboxMethods, Skybox};
64    #[cfg(feature = "system-object")]
65    pub use crate::system::object::IObjectMethods;
66    #[cfg(feature = "unity_engine-behaviour")]
67    pub use crate::unity_engine::behaviour::IBehaviourMethods;
68    #[cfg(feature = "unity_engine-component")]
69    pub use crate::unity_engine::component::IComponentMethods;
70    #[cfg(feature = "unity_engine-object_2")]
71    pub use crate::unity_engine::object_2::IObject_2Methods;
72    pub use crate::{
73        system::object::IObject,
74        unity_engine::{behaviour::IBehaviour, component::IComponent, object_2::IObject_2},
75    };
76}