engage/generated/unity_engine/
projector.rs1#[cfg(feature = "unity_engine-projector-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/projector/Projector.md"))]
18 #[::unity::class(namespace = "UnityEngine", name = "Projector")]
19 #[parent(crate::unity_engine::behaviour::Behaviour)]
20 pub struct Projector {}
21}
22
23#[cfg(feature = "unity_engine-projector-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-projector")]
27pub trait IProjectorMethods: IProjector {
28 #[doc = "`get_material()` overload"]
29 fn get_material(self) -> crate::unity_engine::material::Material {
30 unsafe {
31 let __receiver = <Projector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x32f8c00usize)as*mut u8,crate::unity_engine::material::Material;
33(Projector)__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 = <Projector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x32f8c50usize)as*mut u8,();
41(Projector)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(value))
42 }
43 }
44}
45
46#[cfg(feature = "unity_engine-projector")]
47impl<__T: IProjector> IProjectorMethods for __T {}
48
49#[cfg(feature = "unity_engine-projector")]
50impl Projector {
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-projector")]
61#[doc(hidden)]
62pub mod prelude {
63 pub use super::{IProjector, IProjectorMethods, Projector};
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}