engage/generated/root/
debugshader.rs1#[cfg(feature = "root-debugshader-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 object_2::{IObject_2, Object_2},
12 scriptableobject::{IScriptableObject, ScriptableObject},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/debugshader/DebugShader.md"))]
17 #[::unity::class(namespace = "", name = "DebugShader")]
18 #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19 pub struct DebugShader {
20 #[offset(24)]
21 #[rename(name = "m_Shaders")]
22 pub m_shaders: ::unity::Array<crate::unity_engine::shader::Shader>,
23 }
24}
25
26#[cfg(feature = "root-debugshader-types")]
27pub use __types::*;
28
29#[cfg(feature = "root-debugshader")]
30pub trait IDebugShaderMethods: IDebugShader {
31 #[doc = "`.ctor()` overload"]
32 fn ctor(self) -> () {
33 unsafe {
34 let __receiver = <DebugShader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 ::unity::il2cpp_call!((::unity::module_base()+0x2a10140usize)as*mut u8,();
36(DebugShader)__receiver)
37 }
38 }
39}
40
41#[cfg(feature = "root-debugshader")]
42impl<__T: IDebugShader> IDebugShaderMethods for __T {}
43
44#[cfg(feature = "root-debugshader")]
45impl DebugShader {
46 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
47 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
48 }
49}
50
51#[cfg(feature = "root-debugshader")]
52impl DebugShader {
53 #[doc = "`.ctor()` — no args"]
54 pub fn new() -> Self {
55 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
56 panic!(
57 "{}
58::{}
59 failed to instantiate",
60 ::core::stringify!(DebugShader),
61 ::core::stringify!(new),
62 )
63 });
64 <Self as IDebugShaderMethods>::ctor(this);
65 this
66 }
67}
68
69#[cfg(feature = "root-debugshader")]
70#[doc(hidden)]
71pub mod prelude {
72 pub use super::{DebugShader, IDebugShader, IDebugShaderMethods};
73 #[cfg(feature = "system-object")]
74 pub use crate::system::object::IObjectMethods;
75 #[cfg(feature = "unity_engine-object_2")]
76 pub use crate::unity_engine::object_2::IObject_2Methods;
77 #[cfg(feature = "unity_engine-scriptableobject")]
78 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
79 pub use crate::{
80 system::object::IObject,
81 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
82 };
83}