Skip to main content

engage/generated/unity_engine/
cubemaparray.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-cubemaparray-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            texture::{ITexture, Texture},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/cubemaparray/CubemapArray.md"))]
17    #[::unity::class(namespace = "UnityEngine", name = "CubemapArray")]
18    #[parent(crate::unity_engine::texture::Texture)]
19    pub struct CubemapArray {}
20}
21
22#[cfg(feature = "unity_engine-cubemaparray-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-cubemaparray")]
26impl CubemapArray {
27    #[doc = "`Internal_CreateImpl(crate::unity_engine::cubemaparray::CubemapArray, i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
28    pub fn internal_create_impl(
29        mono: impl ::core::convert::Into<crate::unity_engine::cubemaparray::CubemapArray>,
30        ext: impl ::core::convert::Into<i32>,
31        count: impl ::core::convert::Into<i32>,
32        mip_count: impl ::core::convert::Into<i32>,
33        format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
34        flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
35    ) -> bool {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x2c48c40usize)as*mut u8,bool;
38(crate::unity_engine::cubemaparray::CubemapArray)::core::convert::Into::into(mono),(i32)::core::convert::Into::into(ext),(i32)::core::convert::Into::into(count),(i32)::core::convert::Into::into(mip_count),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
39        }
40    }
41
42    #[doc = "`Internal_Create(crate::unity_engine::cubemaparray::CubemapArray, i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
43    pub fn internal_create(
44        mono: impl ::core::convert::Into<crate::unity_engine::cubemaparray::CubemapArray>,
45        ext: impl ::core::convert::Into<i32>,
46        count: impl ::core::convert::Into<i32>,
47        mip_count: impl ::core::convert::Into<i32>,
48        format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
49        flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
50    ) -> () {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x2c48cc0usize)as*mut u8,();
53(crate::unity_engine::cubemaparray::CubemapArray)::core::convert::Into::into(mono),(i32)::core::convert::Into::into(ext),(i32)::core::convert::Into::into(count),(i32)::core::convert::Into::into(mip_count),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
54        }
55    }
56
57    #[doc = "`ValidateIsNotCrunched(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
58    pub fn validate_is_not_crunched(
59        flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
60    ) -> () {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x2c49160usize)as*mut u8,();
63(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
64        }
65    }
66}
67
68#[cfg(feature = "unity_engine-cubemaparray")]
69pub trait ICubemapArrayMethods: ICubemapArray {
70    #[doc = "`get_isReadable()` overload"]
71    fn get_is_readable(self) -> bool {
72        unsafe {
73            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        11usize,
84                        __vt.len(),
85                        <CubemapArray as ::unity::ClassIdentity>::NAME,
86                        "get_isReadable",
87                    )
88                });
89                let __inner: extern "C" fn(CubemapArray, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
90                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
91                __inner(__receiver, __mi)
92            }
93        }
94    }
95    #[doc = "`ApplyImpl(bool, bool)` overload"]
96    fn apply_impl(self, update_mipmaps: impl ::core::convert::Into<bool>, make_no_longer_readable: impl ::core::convert::Into<bool>) -> () {
97        unsafe {
98            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x2c48d90usize)as*mut u8,();
100(CubemapArray)__receiver,(bool)::core::convert::Into::into(update_mipmaps),(bool)::core::convert::Into::into(make_no_longer_readable))
101        }
102    }
103    #[doc = "`SetPixels(::unity::Array<crate::unity_engine::color::Color>, crate::unity_engine::cubemapface::CubemapFace, i32, i32)` overload"]
104    fn set_pixels(
105        self,
106        colors: impl ::core::convert::Into<::unity::Array<crate::unity_engine::color::Color>>,
107        face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
108        array_element: impl ::core::convert::Into<i32>,
109        miplevel: impl ::core::convert::Into<i32>,
110    ) -> () {
111        unsafe {
112            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x2c48df0usize)as*mut u8,();
114(CubemapArray)__receiver,(::unity::Array<crate::unity_engine::color::Color>)::core::convert::Into::into(colors),(crate::unity_engine::cubemapface::CubemapFace)::core::convert::Into::into(face),(i32)::core::convert::Into::into(array_element),(i32)::core::convert::Into::into(miplevel))
115        }
116    }
117    #[doc = "`SetPixels(::unity::Array<crate::unity_engine::color::Color>, crate::unity_engine::cubemapface::CubemapFace, i32)` overload"]
118    fn set_pixels_2(
119        self,
120        colors: impl ::core::convert::Into<::unity::Array<crate::unity_engine::color::Color>>,
121        face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
122        array_element: impl ::core::convert::Into<i32>,
123    ) -> () {
124        unsafe {
125            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x2c48e60usize)as*mut u8,();
127(CubemapArray)__receiver,(::unity::Array<crate::unity_engine::color::Color>)::core::convert::Into::into(colors),(crate::unity_engine::cubemapface::CubemapFace)::core::convert::Into::into(face),(i32)::core::convert::Into::into(array_element))
128        }
129    }
130    #[doc = "`.ctor(i32, i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
131    fn ctor(
132        self,
133        width: impl ::core::convert::Into<i32>,
134        cubemap_count: impl ::core::convert::Into<i32>,
135        format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat>,
136        flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
137    ) -> () {
138        unsafe {
139            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x2c48ed0usize)as*mut u8,();
141(CubemapArray)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(cubemap_count),(crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
142        }
143    }
144    #[doc = "`.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
145    fn ctor_2(
146        self,
147        width: impl ::core::convert::Into<i32>,
148        cubemap_count: impl ::core::convert::Into<i32>,
149        format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
150        flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
151    ) -> () {
152        unsafe {
153            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x2c48f80usize)as*mut u8,();
155(CubemapArray)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(cubemap_count),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
156        }
157    }
158    #[doc = "`.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32)` overload"]
159    fn ctor_3(
160        self,
161        width: impl ::core::convert::Into<i32>,
162        cubemap_count: impl ::core::convert::Into<i32>,
163        format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
164        flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
165        mip_count: impl ::core::convert::Into<i32>,
166    ) -> () {
167        unsafe {
168            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x2c49030usize)as*mut u8,();
170(CubemapArray)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(cubemap_count),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags),(i32)::core::convert::Into::into(mip_count))
171        }
172    }
173    #[doc = "`.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, i32, bool)` overload"]
174    fn ctor_4(
175        self,
176        width: impl ::core::convert::Into<i32>,
177        cubemap_count: impl ::core::convert::Into<i32>,
178        texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
179        mip_count: impl ::core::convert::Into<i32>,
180        linear: impl ::core::convert::Into<bool>,
181    ) -> () {
182        unsafe {
183            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            ::unity::il2cpp_call!((::unity::module_base()+0x2c491c0usize)as*mut u8,();
185(CubemapArray)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(cubemap_count),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(texture_format),(i32)::core::convert::Into::into(mip_count),(bool)::core::convert::Into::into(linear))
186        }
187    }
188    #[doc = "`.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, bool, bool)` overload"]
189    fn ctor_5(
190        self,
191        width: impl ::core::convert::Into<i32>,
192        cubemap_count: impl ::core::convert::Into<i32>,
193        texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
194        mip_chain: impl ::core::convert::Into<bool>,
195        linear: impl ::core::convert::Into<bool>,
196    ) -> () {
197        unsafe {
198            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199            ::unity::il2cpp_call!((::unity::module_base()+0x2c49330usize)as*mut u8,();
200(CubemapArray)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(cubemap_count),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(texture_format),(bool)::core::convert::Into::into(mip_chain),(bool)::core::convert::Into::into(linear))
201        }
202    }
203    #[doc = "`.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, bool)` overload"]
204    fn ctor_6(
205        self,
206        width: impl ::core::convert::Into<i32>,
207        cubemap_count: impl ::core::convert::Into<i32>,
208        texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
209        mip_chain: impl ::core::convert::Into<bool>,
210    ) -> () {
211        unsafe {
212            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x2c49350usize)as*mut u8,();
214(CubemapArray)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(cubemap_count),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(texture_format),(bool)::core::convert::Into::into(mip_chain))
215        }
216    }
217    #[doc = "`Apply(bool, bool)` overload"]
218    fn apply(self, update_mipmaps: impl ::core::convert::Into<bool>, make_no_longer_readable: impl ::core::convert::Into<bool>) -> () {
219        unsafe {
220            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x2c49370usize)as*mut u8,();
222(CubemapArray)__receiver,(bool)::core::convert::Into::into(update_mipmaps),(bool)::core::convert::Into::into(make_no_longer_readable))
223        }
224    }
225    #[doc = "`Apply()` overload"]
226    fn apply_2(self) -> () {
227        unsafe {
228            let __receiver = <CubemapArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            ::unity::il2cpp_call!((::unity::module_base()+0x2c49410usize)as*mut u8,();
230(CubemapArray)__receiver)
231        }
232    }
233}
234
235#[cfg(feature = "unity_engine-cubemaparray")]
236impl<__T: ICubemapArray> ICubemapArrayMethods for __T {}
237
238#[cfg(feature = "unity_engine-cubemaparray")]
239impl CubemapArray {
240    pub fn get_is_readable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
242    }
243
244    pub fn internal_create_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
246    }
247
248    pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
250    }
251
252    pub fn apply_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
254    }
255
256    pub fn set_pixels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
258    }
259
260    pub fn set_pixels_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
262    }
263
264    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
266    }
267
268    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
270    }
271
272    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
274    }
275
276    pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
278    }
279
280    pub fn ctor_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
282    }
283
284    pub fn ctor_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
286    }
287
288    pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
290    }
291
292    pub fn apply_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
294    }
295
296    pub fn validate_is_not_crunched_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
298    }
299}
300
301#[cfg(feature = "unity_engine-cubemaparray")]
302impl CubemapArray {
303    #[doc = "Direct (non-virtual) call to `CubemapArray`'s own `get_isReadable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
304    pub unsafe fn get_is_readable(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
305        let __mi = Self::get_is_readable_method_info();
306        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
307        __inner(this.into(), ::core::option::Option::None)
308    }
309}
310
311#[cfg(feature = "unity_engine-cubemaparray")]
312impl CubemapArray {
313    #[doc = "`.ctor(i32, i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` — overload selector"]
314    pub fn new(
315        width: i32,
316        cubemap_count: i32,
317        format: crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat,
318        flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
319    ) -> Self {
320        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
321            panic!(
322                "{}
323::{}
324 failed to instantiate",
325                ::core::stringify!(CubemapArray),
326                ::core::stringify!(new),
327            )
328        });
329        <Self as ICubemapArrayMethods>::ctor(this, width, cubemap_count, format, flags);
330        this
331    }
332
333    #[doc = "`.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` — overload selector"]
334    pub fn new_2(
335        width: i32,
336        cubemap_count: i32,
337        format: crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat,
338        flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
339    ) -> Self {
340        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
341            panic!(
342                "{}
343::{}
344 failed to instantiate",
345                ::core::stringify!(CubemapArray),
346                ::core::stringify!(new_2),
347            )
348        });
349        <Self as ICubemapArrayMethods>::ctor_2(this, width, cubemap_count, format, flags);
350        this
351    }
352
353    #[doc = "`.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32)` — overload selector"]
354    pub fn new_3(
355        width: i32,
356        cubemap_count: i32,
357        format: crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat,
358        flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
359        mip_count: i32,
360    ) -> Self {
361        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
362            panic!(
363                "{}
364::{}
365 failed to instantiate",
366                ::core::stringify!(CubemapArray),
367                ::core::stringify!(new_3),
368            )
369        });
370        <Self as ICubemapArrayMethods>::ctor_3(this, width, cubemap_count, format, flags, mip_count);
371        this
372    }
373
374    #[doc = "`.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, i32, bool)` — overload selector"]
375    pub fn new_4(
376        width: i32,
377        cubemap_count: i32,
378        texture_format: crate::unity_engine::textureformat::TextureFormat,
379        mip_count: i32,
380        linear: bool,
381    ) -> Self {
382        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
383            panic!(
384                "{}
385::{}
386 failed to instantiate",
387                ::core::stringify!(CubemapArray),
388                ::core::stringify!(new_4),
389            )
390        });
391        <Self as ICubemapArrayMethods>::ctor_4(this, width, cubemap_count, texture_format, mip_count, linear);
392        this
393    }
394
395    #[doc = "`.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, bool, bool)` — overload selector"]
396    pub fn new_5(
397        width: i32,
398        cubemap_count: i32,
399        texture_format: crate::unity_engine::textureformat::TextureFormat,
400        mip_chain: bool,
401        linear: bool,
402    ) -> Self {
403        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
404            panic!(
405                "{}
406::{}
407 failed to instantiate",
408                ::core::stringify!(CubemapArray),
409                ::core::stringify!(new_5),
410            )
411        });
412        <Self as ICubemapArrayMethods>::ctor_5(this, width, cubemap_count, texture_format, mip_chain, linear);
413        this
414    }
415
416    #[doc = "`.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, bool)` — overload selector"]
417    pub fn new_6(width: i32, cubemap_count: i32, texture_format: crate::unity_engine::textureformat::TextureFormat, mip_chain: bool) -> Self {
418        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
419            panic!(
420                "{}
421::{}
422 failed to instantiate",
423                ::core::stringify!(CubemapArray),
424                ::core::stringify!(new_6),
425            )
426        });
427        <Self as ICubemapArrayMethods>::ctor_6(this, width, cubemap_count, texture_format, mip_chain);
428        this
429    }
430}
431
432#[cfg(feature = "unity_engine-cubemaparray")]
433#[doc(hidden)]
434pub mod prelude {
435    pub use super::{CubemapArray, ICubemapArray, ICubemapArrayMethods};
436    #[cfg(feature = "system-object")]
437    pub use crate::system::object::IObjectMethods;
438    #[cfg(feature = "unity_engine-object_2")]
439    pub use crate::unity_engine::object_2::IObject_2Methods;
440    #[cfg(feature = "unity_engine-texture")]
441    pub use crate::unity_engine::texture::ITextureMethods;
442    pub use crate::{
443        system::object::IObject,
444        unity_engine::{object_2::IObject_2, texture::ITexture},
445    };
446}