engage/generated/unity_engine/
qualitysettings.rs1#[cfg(feature = "unity_engine-qualitysettings-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::object_2::{IObject_2, Object_2},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/qualitysettings/QualitySettings.md"))]
14 #[::unity::class(namespace = "UnityEngine", name = "QualitySettings")]
15 #[parent(crate::unity_engine::object_2::Object_2)]
16 pub struct QualitySettings {}
17}
18
19#[cfg(feature = "unity_engine-qualitysettings-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-qualitysettings")]
23impl QualitySettings {
24 #[doc = "`get_pixelLightCount()` overload"]
25 pub fn get_pixel_light_count() -> i32 {
26 unsafe {
27 ::unity::il2cpp_call!((::unity::module_base()+0x32f8f10usize)as*mut u8,i32;
28 )
29 }
30 }
31
32 #[doc = "`set_pixelLightCount(i32)` overload"]
33 pub fn set_pixel_light_count(value: impl ::core::convert::Into<i32>) -> () {
34 unsafe {
35 ::unity::il2cpp_call!((::unity::module_base()+0x32f8f50usize)as*mut u8,();
36(i32)::core::convert::Into::into(value))
37 }
38 }
39
40 #[doc = "`get_shadowCascades()` overload"]
41 pub fn get_shadow_cascades() -> i32 {
42 unsafe {
43 ::unity::il2cpp_call!((::unity::module_base()+0x32f8fa0usize)as*mut u8,i32;
44 )
45 }
46 }
47
48 #[doc = "`set_shadowCascades(i32)` overload"]
49 pub fn set_shadow_cascades(value: impl ::core::convert::Into<i32>) -> () {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x32f8fe0usize)as*mut u8,();
52(i32)::core::convert::Into::into(value))
53 }
54 }
55
56 #[doc = "`get_shadowResolution()` overload"]
57 pub fn get_shadow_resolution() -> crate::unity_engine::shadowresolution::ShadowResolution {
58 unsafe {
59 ::unity::il2cpp_call!((::unity::module_base()+0x32f9030usize)as*mut u8,crate::unity_engine::shadowresolution::ShadowResolution;
60 )
61 }
62 }
63
64 #[doc = "`set_shadowResolution(crate::unity_engine::shadowresolution::ShadowResolution)` overload"]
65 pub fn set_shadow_resolution(value: impl ::core::convert::Into<crate::unity_engine::shadowresolution::ShadowResolution>) -> () {
66 unsafe {
67 ::unity::il2cpp_call!((::unity::module_base()+0x32f9070usize)as*mut u8,();
68(crate::unity_engine::shadowresolution::ShadowResolution)::core::convert::Into::into(value))
69 }
70 }
71
72 #[doc = "`get_shadowmaskMode()` overload"]
73 pub fn get_shadowmask_mode() -> crate::unity_engine::shadowmaskmode::ShadowmaskMode {
74 unsafe {
75 ::unity::il2cpp_call!((::unity::module_base()+0x32f90c0usize)as*mut u8,crate::unity_engine::shadowmaskmode::ShadowmaskMode;
76 )
77 }
78 }
79
80 #[doc = "`set_shadowmaskMode(crate::unity_engine::shadowmaskmode::ShadowmaskMode)` overload"]
81 pub fn set_shadowmask_mode(value: impl ::core::convert::Into<crate::unity_engine::shadowmaskmode::ShadowmaskMode>) -> () {
82 unsafe {
83 ::unity::il2cpp_call!((::unity::module_base()+0x32f9100usize)as*mut u8,();
84(crate::unity_engine::shadowmaskmode::ShadowmaskMode)::core::convert::Into::into(value))
85 }
86 }
87
88 #[doc = "`set_lodBias(f32)` overload"]
89 pub fn set_lod_bias(value: impl ::core::convert::Into<f32>) -> () {
90 unsafe {
91 ::unity::il2cpp_call!((::unity::module_base()+0x32f9150usize)as*mut u8,();
92(f32)::core::convert::Into::into(value))
93 }
94 }
95
96 #[doc = "`get_maximumLODLevel()` overload"]
97 pub fn get_maximum_lod_level() -> i32 {
98 unsafe {
99 ::unity::il2cpp_call!((::unity::module_base()+0x32f91a0usize)as*mut u8,i32;
100 )
101 }
102 }
103
104 #[doc = "`set_maximumLODLevel(i32)` overload"]
105 pub fn set_maximum_lod_level(value: impl ::core::convert::Into<i32>) -> () {
106 unsafe {
107 ::unity::il2cpp_call!((::unity::module_base()+0x32f91e0usize)as*mut u8,();
108(i32)::core::convert::Into::into(value))
109 }
110 }
111
112 #[doc = "`set_softParticles(bool)` overload"]
113 pub fn set_soft_particles(value: impl ::core::convert::Into<bool>) -> () {
114 unsafe {
115 ::unity::il2cpp_call!((::unity::module_base()+0x32f9230usize)as*mut u8,();
116(bool)::core::convert::Into::into(value))
117 }
118 }
119
120 #[doc = "`get_vSyncCount()` overload"]
121 pub fn get_v_sync_count() -> i32 {
122 unsafe {
123 ::unity::il2cpp_call!((::unity::module_base()+0x32f9280usize)as*mut u8,i32;
124 )
125 }
126 }
127
128 #[doc = "`set_vSyncCount(i32)` overload"]
129 pub fn set_v_sync_count(value: impl ::core::convert::Into<i32>) -> () {
130 unsafe {
131 ::unity::il2cpp_call!((::unity::module_base()+0x32f92c0usize)as*mut u8,();
132(i32)::core::convert::Into::into(value))
133 }
134 }
135
136 #[doc = "`get_antiAliasing()` overload"]
137 pub fn get_anti_aliasing() -> i32 {
138 unsafe {
139 ::unity::il2cpp_call!((::unity::module_base()+0x32f9310usize)as*mut u8,i32;
140 )
141 }
142 }
143
144 #[doc = "`set_antiAliasing(i32)` overload"]
145 pub fn set_anti_aliasing(value: impl ::core::convert::Into<i32>) -> () {
146 unsafe {
147 ::unity::il2cpp_call!((::unity::module_base()+0x32f9350usize)as*mut u8,();
148(i32)::core::convert::Into::into(value))
149 }
150 }
151
152 #[doc = "`set_asyncUploadTimeSlice(i32)` overload"]
153 pub fn set_async_upload_time_slice(value: impl ::core::convert::Into<i32>) -> () {
154 unsafe {
155 ::unity::il2cpp_call!((::unity::module_base()+0x32f93a0usize)as*mut u8,();
156(i32)::core::convert::Into::into(value))
157 }
158 }
159
160 #[doc = "`set_skinWeights(crate::unity_engine::skinweights::SkinWeights)` overload"]
161 pub fn set_skin_weights(value: impl ::core::convert::Into<crate::unity_engine::skinweights::SkinWeights>) -> () {
162 unsafe {
163 ::unity::il2cpp_call!((::unity::module_base()+0x32f93f0usize)as*mut u8,();
164(crate::unity_engine::skinweights::SkinWeights)::core::convert::Into::into(value))
165 }
166 }
167
168 #[doc = "`get_desiredColorSpace()` overload"]
169 pub fn get_desired_color_space() -> crate::unity_engine::colorspace::ColorSpace {
170 unsafe {
171 ::unity::il2cpp_call!((::unity::module_base()+0x32f9440usize)as*mut u8,crate::unity_engine::colorspace::ColorSpace;
172 )
173 }
174 }
175
176 #[doc = "`get_activeColorSpace()` overload"]
177 pub fn get_active_color_space() -> crate::unity_engine::colorspace::ColorSpace {
178 unsafe {
179 ::unity::il2cpp_call!((::unity::module_base()+0x32f9480usize)as*mut u8,crate::unity_engine::colorspace::ColorSpace;
180 )
181 }
182 }
183}
184
185#[cfg(feature = "unity_engine-qualitysettings")]
186impl QualitySettings {
187 pub fn get_pixel_light_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
189 }
190
191 pub fn set_pixel_light_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
193 }
194
195 pub fn get_shadow_cascades_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
197 }
198
199 pub fn set_shadow_cascades_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
201 }
202
203 pub fn get_shadow_resolution_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
205 }
206
207 pub fn set_shadow_resolution_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
209 }
210
211 pub fn get_shadowmask_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
213 }
214
215 pub fn set_shadowmask_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
217 }
218
219 pub fn set_lod_bias_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
221 }
222
223 pub fn get_maximum_lod_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
225 }
226
227 pub fn set_maximum_lod_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
229 }
230
231 pub fn set_soft_particles_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
233 }
234
235 pub fn get_v_sync_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
237 }
238
239 pub fn set_v_sync_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
241 }
242
243 pub fn get_anti_aliasing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
245 }
246
247 pub fn set_anti_aliasing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
249 }
250
251 pub fn set_async_upload_time_slice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
253 }
254
255 pub fn set_skin_weights_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
257 }
258
259 pub fn get_desired_color_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
261 }
262
263 pub fn get_active_color_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
265 }
266}
267
268#[cfg(feature = "unity_engine-qualitysettings")]
269#[doc(hidden)]
270pub mod prelude {
271 pub use super::{IQualitySettings, QualitySettings};
272 #[cfg(feature = "system-object")]
273 pub use crate::system::object::IObjectMethods;
274 #[cfg(feature = "unity_engine-object_2")]
275 pub use crate::unity_engine::object_2::IObject_2Methods;
276 pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
277}