Skip to main content

engage/generated/unity_engine/
skinnedmeshrenderer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-skinnedmeshrenderer-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            component::{Component, IComponent},
12            object_2::{IObject_2, Object_2},
13            renderer::{IRenderer, Renderer},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/skinnedmeshrenderer/SkinnedMeshRenderer.md"))]
18    #[::unity::class(namespace = "UnityEngine", name = "SkinnedMeshRenderer")]
19    #[parent(crate::unity_engine::renderer::Renderer)]
20    pub struct SkinnedMeshRenderer {}
21}
22
23#[cfg(feature = "unity_engine-skinnedmeshrenderer-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-skinnedmeshrenderer")]
27pub trait ISkinnedMeshRendererMethods: ISkinnedMeshRenderer {
28    #[doc = "`get_quality()` overload"]
29    fn get_quality(self) -> crate::unity_engine::skinquality::SkinQuality {
30        unsafe {
31            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x2f93cd0usize)as*mut u8,crate::unity_engine::skinquality::SkinQuality;
33(SkinnedMeshRenderer)__receiver)
34        }
35    }
36    #[doc = "`set_quality(crate::unity_engine::skinquality::SkinQuality)` overload"]
37    fn set_quality(self, value: impl ::core::convert::Into<crate::unity_engine::skinquality::SkinQuality>) -> () {
38        unsafe {
39            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x2f93d20usize)as*mut u8,();
41(SkinnedMeshRenderer)__receiver,(crate::unity_engine::skinquality::SkinQuality)::core::convert::Into::into(value))
42        }
43    }
44    #[doc = "`get_updateWhenOffscreen()` overload"]
45    fn get_update_when_offscreen(self) -> bool {
46        unsafe {
47            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x2f93d70usize)as*mut u8,bool;
49(SkinnedMeshRenderer)__receiver)
50        }
51    }
52    #[doc = "`set_updateWhenOffscreen(bool)` overload"]
53    fn set_update_when_offscreen(self, value: impl ::core::convert::Into<bool>) -> () {
54        unsafe {
55            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x2f93dc0usize)as*mut u8,();
57(SkinnedMeshRenderer)__receiver,(bool)::core::convert::Into::into(value))
58        }
59    }
60    #[doc = "`get_forceMatrixRecalculationPerRender()` overload"]
61    fn get_force_matrix_recalculation_per_render(self) -> bool {
62        unsafe {
63            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2f93e10usize)as*mut u8,bool;
65(SkinnedMeshRenderer)__receiver)
66        }
67    }
68    #[doc = "`set_forceMatrixRecalculationPerRender(bool)` overload"]
69    fn set_force_matrix_recalculation_per_render(self, value: impl ::core::convert::Into<bool>) -> () {
70        unsafe {
71            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x2f93e60usize)as*mut u8,();
73(SkinnedMeshRenderer)__receiver,(bool)::core::convert::Into::into(value))
74        }
75    }
76    #[doc = "`get_rootBone()` overload"]
77    fn get_root_bone(self) -> crate::unity_engine::transform::Transform {
78        unsafe {
79            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x2f93eb0usize)as*mut u8,crate::unity_engine::transform::Transform;
81(SkinnedMeshRenderer)__receiver)
82        }
83    }
84    #[doc = "`set_rootBone(crate::unity_engine::transform::Transform)` overload"]
85    fn set_root_bone(self, value: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
86        unsafe {
87            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x2f93f00usize)as*mut u8,();
89(SkinnedMeshRenderer)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(value))
90        }
91    }
92    #[doc = "`get_bones()` overload"]
93    fn get_bones(self) -> ::unity::Array<crate::unity_engine::transform::Transform> {
94        unsafe {
95            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x2f93f50usize)as*mut u8, ::unity::Array<crate::unity_engine::transform::Transform> ;
97(SkinnedMeshRenderer)__receiver)
98        }
99    }
100    #[doc = "`set_bones(::unity::Array<crate::unity_engine::transform::Transform>)` overload"]
101    fn set_bones(self, value: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>) -> () {
102        unsafe {
103            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x2f93fa0usize)as*mut u8,();
105(SkinnedMeshRenderer)__receiver,(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(value))
106        }
107    }
108    #[doc = "`get_sharedMesh()` overload"]
109    fn get_shared_mesh(self) -> crate::unity_engine::mesh::Mesh {
110        unsafe {
111            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x2f93ff0usize)as*mut u8,crate::unity_engine::mesh::Mesh;
113(SkinnedMeshRenderer)__receiver)
114        }
115    }
116    #[doc = "`set_sharedMesh(crate::unity_engine::mesh::Mesh)` overload"]
117    fn set_shared_mesh(self, value: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
118        unsafe {
119            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x2f94040usize)as*mut u8,();
121(SkinnedMeshRenderer)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(value))
122        }
123    }
124    #[doc = "`get_skinnedMotionVectors()` overload"]
125    fn get_skinned_motion_vectors(self) -> bool {
126        unsafe {
127            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x2f94090usize)as*mut u8,bool;
129(SkinnedMeshRenderer)__receiver)
130        }
131    }
132    #[doc = "`set_skinnedMotionVectors(bool)` overload"]
133    fn set_skinned_motion_vectors(self, value: impl ::core::convert::Into<bool>) -> () {
134        unsafe {
135            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x2f940e0usize)as*mut u8,();
137(SkinnedMeshRenderer)__receiver,(bool)::core::convert::Into::into(value))
138        }
139    }
140    #[doc = "`GetBlendShapeWeight(i32)` overload"]
141    fn get_blend_shape_weight(self, index: impl ::core::convert::Into<i32>) -> f32 {
142        unsafe {
143            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x2f94130usize)as*mut u8,f32;
145(SkinnedMeshRenderer)__receiver,(i32)::core::convert::Into::into(index))
146        }
147    }
148    #[doc = "`SetBlendShapeWeight(i32, f32)` overload"]
149    fn set_blend_shape_weight(self, index: impl ::core::convert::Into<i32>, value: impl ::core::convert::Into<f32>) -> () {
150        unsafe {
151            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x2f94180usize)as*mut u8,();
153(SkinnedMeshRenderer)__receiver,(i32)::core::convert::Into::into(index),(f32)::core::convert::Into::into(value))
154        }
155    }
156    #[doc = "`BakeMesh(crate::unity_engine::mesh::Mesh)` overload"]
157    fn bake_mesh(self, mesh: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
158        unsafe {
159            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x2f941e0usize)as*mut u8,();
161(SkinnedMeshRenderer)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(mesh))
162        }
163    }
164    #[doc = "`BakeMesh(crate::unity_engine::mesh::Mesh, bool)` overload"]
165    fn bake_mesh_2(self, mesh: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>, use_scale: impl ::core::convert::Into<bool>) -> () {
166        unsafe {
167            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x2f94240usize)as*mut u8,();
169(SkinnedMeshRenderer)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(mesh),(bool)::core::convert::Into::into(use_scale))
170        }
171    }
172    #[doc = "`GetLocalAABB()` overload"]
173    fn get_local_aabb(self) -> crate::unity_engine::bounds::Bounds {
174        unsafe {
175            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176            ::unity::il2cpp_call!((::unity::module_base()+0x2f942a0usize)as*mut u8,crate::unity_engine::bounds::Bounds;
177(SkinnedMeshRenderer)__receiver)
178        }
179    }
180    #[doc = "`SetLocalAABB(crate::unity_engine::bounds::Bounds)` overload"]
181    fn set_local_aabb(self, b: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>) -> () {
182        unsafe {
183            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            ::unity::il2cpp_call!((::unity::module_base()+0x2f94370usize)as*mut u8,();
185(SkinnedMeshRenderer)__receiver,(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(b))
186        }
187    }
188    #[doc = "`get_localBounds()` overload"]
189    fn get_local_bounds(self) -> crate::unity_engine::bounds::Bounds {
190        unsafe {
191            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192            ::unity::il2cpp_call!((::unity::module_base()+0x2f94410usize)as*mut u8,crate::unity_engine::bounds::Bounds;
193(SkinnedMeshRenderer)__receiver)
194        }
195    }
196    #[doc = "`set_localBounds(crate::unity_engine::bounds::Bounds)` overload"]
197    fn set_local_bounds(self, value: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>) -> () {
198        unsafe {
199            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200            ::unity::il2cpp_call!((::unity::module_base()+0x2f944a0usize)as*mut u8,();
201(SkinnedMeshRenderer)__receiver,(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(value))
202        }
203    }
204    #[doc = "`.ctor()` overload"]
205    fn ctor(self) -> () {
206        unsafe {
207            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208            ::unity::il2cpp_call!((::unity::module_base()+0x2f94500usize)as*mut u8,();
209(SkinnedMeshRenderer)__receiver)
210        }
211    }
212    #[doc = "`GetLocalAABB_Injected(*mutcrate::unity_engine::bounds::Bounds)` overload"]
213    fn get_local_aabb_injected(self) -> crate::unity_engine::bounds::Bounds {
214        unsafe {
215            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::bounds::Bounds>::uninit();
217            ::unity::il2cpp_call!((::unity::module_base()+0x2f94320usize)as*mut u8,();
218(SkinnedMeshRenderer)__receiver,(*mut crate::unity_engine::bounds::Bounds)__out_0.as_mut_ptr());
219            __out_0.assume_init()
220        }
221    }
222    #[doc = "`SetLocalAABB_Injected(*mutcrate::unity_engine::bounds::Bounds)` overload"]
223    fn set_local_aabb_injected(self) -> crate::unity_engine::bounds::Bounds {
224        unsafe {
225            let __receiver = <SkinnedMeshRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::bounds::Bounds>::uninit();
227            ::unity::il2cpp_call!((::unity::module_base()+0x2f943c0usize)as*mut u8,();
228(SkinnedMeshRenderer)__receiver,(*mut crate::unity_engine::bounds::Bounds)__out_0.as_mut_ptr());
229            __out_0.assume_init()
230        }
231    }
232}
233
234#[cfg(feature = "unity_engine-skinnedmeshrenderer")]
235impl<__T: ISkinnedMeshRenderer> ISkinnedMeshRendererMethods for __T {}
236
237#[cfg(feature = "unity_engine-skinnedmeshrenderer")]
238impl SkinnedMeshRenderer {
239    pub fn get_quality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
241    }
242
243    pub fn set_quality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
245    }
246
247    pub fn get_update_when_offscreen_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
249    }
250
251    pub fn set_update_when_offscreen_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
253    }
254
255    pub fn get_force_matrix_recalculation_per_render_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
257    }
258
259    pub fn set_force_matrix_recalculation_per_render_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
261    }
262
263    pub fn get_root_bone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
265    }
266
267    pub fn set_root_bone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
269    }
270
271    pub fn get_bones_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
273    }
274
275    pub fn set_bones_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
277    }
278
279    pub fn get_shared_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
281    }
282
283    pub fn set_shared_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
285    }
286
287    pub fn get_skinned_motion_vectors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
289    }
290
291    pub fn set_skinned_motion_vectors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
293    }
294
295    pub fn get_blend_shape_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
297    }
298
299    pub fn set_blend_shape_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
301    }
302
303    pub fn bake_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
305    }
306
307    pub fn bake_mesh_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
309    }
310
311    pub fn get_local_aabb_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
313    }
314
315    pub fn set_local_aabb_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
317    }
318
319    pub fn get_local_bounds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
321    }
322
323    pub fn set_local_bounds_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
325    }
326
327    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
329    }
330
331    pub fn get_local_aabb_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
333    }
334
335    pub fn set_local_aabb_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
337    }
338}
339
340#[cfg(feature = "unity_engine-skinnedmeshrenderer")]
341impl SkinnedMeshRenderer {
342    #[doc = "`.ctor()` — no args"]
343    pub fn new() -> Self {
344        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
345            panic!(
346                "{}
347::{}
348 failed to instantiate",
349                ::core::stringify!(SkinnedMeshRenderer),
350                ::core::stringify!(new),
351            )
352        });
353        <Self as ISkinnedMeshRendererMethods>::ctor(this);
354        this
355    }
356}
357
358#[cfg(feature = "unity_engine-skinnedmeshrenderer")]
359#[doc(hidden)]
360pub mod prelude {
361    pub use super::{ISkinnedMeshRenderer, ISkinnedMeshRendererMethods, SkinnedMeshRenderer};
362    #[cfg(feature = "system-object")]
363    pub use crate::system::object::IObjectMethods;
364    #[cfg(feature = "unity_engine-component")]
365    pub use crate::unity_engine::component::IComponentMethods;
366    #[cfg(feature = "unity_engine-object_2")]
367    pub use crate::unity_engine::object_2::IObject_2Methods;
368    #[cfg(feature = "unity_engine-renderer")]
369    pub use crate::unity_engine::renderer::IRendererMethods;
370    pub use crate::{
371        system::object::IObject,
372        unity_engine::{component::IComponent, object_2::IObject_2, renderer::IRenderer},
373    };
374}