engage/generated/unity_engine/rendering/universal/custom/
drawobjectcategoryinfo.rs1#[cfg(feature = "unity_engine-rendering-universal-custom-drawobjectcategoryinfo-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/rendering/universal/custom/drawobjectcategoryinfo/DrawObjectCategoryInfo.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom", name = "DrawObjectCategoryInfo")]
12 #[parent(crate::system::object::Object)]
13 pub struct DrawObjectCategoryInfo {
14 #[static_field]
15 #[rename(name = "s_DrawObjectVisibilities")]
16 pub s_draw_object_visibilities: ::unity::Array<bool>,
17 }
18}
19
20#[cfg(feature = "unity_engine-rendering-universal-custom-drawobjectcategoryinfo-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-rendering-universal-custom-drawobjectcategoryinfo")]
24impl DrawObjectCategoryInfo {
25 #[doc = "`GetNoOverrideStateIndexBegin()` overload"]
26 pub fn get_no_override_state_index_begin() -> i32 {
27 unsafe {
28 ::unity::il2cpp_call!((::unity::module_base()+0x2ee8640usize)as*mut u8,i32;
29 )
30 }
31 }
32
33 #[doc = "`Initialize()` overload"]
34 pub fn initialize() -> () {
35 unsafe {
36 ::unity::il2cpp_call!((::unity::module_base()+0x2ee8650usize)as*mut u8,();
37 )
38 }
39 }
40
41 #[doc = "`IsVisible(crate::unity_engine::rendering::universal::custom::drawobjectcategory::DrawObjectCategory)` overload"]
42 pub fn is_visible(
43 category: impl ::core::convert::Into<crate::unity_engine::rendering::universal::custom::drawobjectcategory::DrawObjectCategory>,
44 ) -> bool {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x2ee8780usize)as*mut u8,bool;
47(crate::unity_engine::rendering::universal::custom::drawobjectcategory::DrawObjectCategory)::core::convert::Into::into(category))
48 }
49 }
50
51 #[doc = "`SetVisibility(crate::unity_engine::rendering::universal::custom::drawobjectcategory::DrawObjectCategory, bool)` overload"]
52 pub fn set_visibility(
53 category: impl ::core::convert::Into<crate::unity_engine::rendering::universal::custom::drawobjectcategory::DrawObjectCategory>,
54 visibility: impl ::core::convert::Into<bool>,
55 ) -> () {
56 unsafe {
57 ::unity::il2cpp_call!((::unity::module_base()+0x2ee8820usize)as*mut u8,();
58(crate::unity_engine::rendering::universal::custom::drawobjectcategory::DrawObjectCategory)::core::convert::Into::into(category),(bool)::core::convert::Into::into(visibility))
59 }
60 }
61}
62
63#[cfg(feature = "unity_engine-rendering-universal-custom-drawobjectcategoryinfo")]
64pub trait IDrawObjectCategoryInfoMethods: IDrawObjectCategoryInfo {
65 #[doc = "`.ctor()` overload"]
66 fn ctor(self) -> () {
67 unsafe {
68 let __receiver =
69 <DrawObjectCategoryInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x2ee88b0usize)as*mut u8,();
71(DrawObjectCategoryInfo)__receiver)
72 }
73 }
74}
75
76#[cfg(feature = "unity_engine-rendering-universal-custom-drawobjectcategoryinfo")]
77impl<__T: IDrawObjectCategoryInfo> IDrawObjectCategoryInfoMethods for __T {}
78
79#[cfg(feature = "unity_engine-rendering-universal-custom-drawobjectcategoryinfo")]
80impl DrawObjectCategoryInfo {
81 pub fn get_no_override_state_index_begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
83 }
84
85 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
87 }
88
89 pub fn is_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
91 }
92
93 pub fn set_visibility_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
95 }
96
97 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
99 }
100}
101
102#[cfg(feature = "unity_engine-rendering-universal-custom-drawobjectcategoryinfo")]
103impl DrawObjectCategoryInfo {
104 #[doc = "`.ctor()` — no args"]
105 pub fn new() -> Self {
106 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
107 panic!(
108 "{}
109::{}
110 failed to instantiate",
111 ::core::stringify!(DrawObjectCategoryInfo),
112 ::core::stringify!(new),
113 )
114 });
115 <Self as IDrawObjectCategoryInfoMethods>::ctor(this);
116 this
117 }
118}
119
120#[cfg(feature = "unity_engine-rendering-universal-custom-drawobjectcategoryinfo")]
121#[doc(hidden)]
122pub mod prelude {
123 pub use super::{DrawObjectCategoryInfo, IDrawObjectCategoryInfo, IDrawObjectCategoryInfoMethods};
124 pub use crate::system::object::IObject;
125 #[cfg(feature = "system-object")]
126 pub use crate::system::object::IObjectMethods;
127}