engage/generated/unity_engine/
meshcollider.rs1#[cfg(feature = "unity_engine-meshcollider-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 collider::{Collider, ICollider},
12 component::{Component, IComponent},
13 object_2::{IObject_2, Object_2},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/meshcollider/MeshCollider.md"))]
18 #[::unity::class(namespace = "UnityEngine", name = "MeshCollider")]
19 #[parent(crate::unity_engine::collider::Collider)]
20 pub struct MeshCollider {}
21}
22
23#[cfg(feature = "unity_engine-meshcollider-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-meshcollider")]
27pub trait IMeshColliderMethods: IMeshCollider {
28 #[doc = "`get_sharedMesh()` overload"]
29 fn get_shared_mesh(self) -> crate::unity_engine::mesh::Mesh {
30 unsafe {
31 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7750usize)as*mut u8,crate::unity_engine::mesh::Mesh;
33(MeshCollider)__receiver)
34 }
35 }
36 #[doc = "`set_sharedMesh(crate::unity_engine::mesh::Mesh)` overload"]
37 fn set_shared_mesh(self, value: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
38 unsafe {
39 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x3ef77a0usize)as*mut u8,();
41(MeshCollider)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(value))
42 }
43 }
44 #[doc = "`get_convex()` overload"]
45 fn get_convex(self) -> bool {
46 unsafe {
47 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x3ef77f0usize)as*mut u8,bool;
49(MeshCollider)__receiver)
50 }
51 }
52 #[doc = "`set_convex(bool)` overload"]
53 fn set_convex(self, value: impl ::core::convert::Into<bool>) -> () {
54 unsafe {
55 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7840usize)as*mut u8,();
57(MeshCollider)__receiver,(bool)::core::convert::Into::into(value))
58 }
59 }
60 #[doc = "`get_inflateMesh()` overload"]
61 fn get_inflate_mesh(self) -> bool {
62 unsafe {
63 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7890usize)as*mut u8,bool;
65(MeshCollider)__receiver)
66 }
67 }
68 #[doc = "`set_inflateMesh(bool)` overload"]
69 fn set_inflate_mesh(self, value: impl ::core::convert::Into<bool>) -> () {
70 unsafe {
71 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x3ef78a0usize)as*mut u8,();
73(MeshCollider)__receiver,(bool)::core::convert::Into::into(value))
74 }
75 }
76 #[doc = "`get_cookingOptions()` overload"]
77 fn get_cooking_options(self) -> crate::unity_engine::meshcollidercookingoptions::MeshColliderCookingOptions {
78 unsafe {
79 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x3ef78b0usize)as*mut u8,crate::unity_engine::meshcollidercookingoptions::MeshColliderCookingOptions;
81(MeshCollider)__receiver)
82 }
83 }
84 #[doc = "`set_cookingOptions(crate::unity_engine::meshcollidercookingoptions::MeshColliderCookingOptions)` overload"]
85 fn set_cooking_options(
86 self,
87 value: impl ::core::convert::Into<crate::unity_engine::meshcollidercookingoptions::MeshColliderCookingOptions>,
88 ) -> () {
89 unsafe {
90 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7900usize)as*mut u8,();
92(MeshCollider)__receiver,(crate::unity_engine::meshcollidercookingoptions::MeshColliderCookingOptions)::core::convert::Into::into(value))
93 }
94 }
95 #[doc = "`get_skinWidth()` overload"]
96 fn get_skin_width(self) -> f32 {
97 unsafe {
98 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7950usize)as*mut u8,f32;
100(MeshCollider)__receiver)
101 }
102 }
103 #[doc = "`set_skinWidth(f32)` overload"]
104 fn set_skin_width(self, value: impl ::core::convert::Into<f32>) -> () {
105 unsafe {
106 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7960usize)as*mut u8,();
108(MeshCollider)__receiver,(f32)::core::convert::Into::into(value))
109 }
110 }
111 #[doc = "`get_smoothSphereCollisions()` overload"]
112 fn get_smooth_sphere_collisions(self) -> bool {
113 unsafe {
114 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7970usize)as*mut u8,bool;
116(MeshCollider)__receiver)
117 }
118 }
119 #[doc = "`set_smoothSphereCollisions(bool)` overload"]
120 fn set_smooth_sphere_collisions(self, value: impl ::core::convert::Into<bool>) -> () {
121 unsafe {
122 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7980usize)as*mut u8,();
124(MeshCollider)__receiver,(bool)::core::convert::Into::into(value))
125 }
126 }
127 #[doc = "`.ctor()` overload"]
128 fn ctor(self) -> () {
129 unsafe {
130 let __receiver = <MeshCollider as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x3ef7990usize)as*mut u8,();
132(MeshCollider)__receiver)
133 }
134 }
135}
136
137#[cfg(feature = "unity_engine-meshcollider")]
138impl<__T: IMeshCollider> IMeshColliderMethods for __T {}
139
140#[cfg(feature = "unity_engine-meshcollider")]
141impl MeshCollider {
142 pub fn get_shared_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
144 }
145
146 pub fn set_shared_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
148 }
149
150 pub fn get_convex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
152 }
153
154 pub fn set_convex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
156 }
157
158 pub fn get_inflate_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
160 }
161
162 pub fn set_inflate_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
164 }
165
166 pub fn get_cooking_options_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
168 }
169
170 pub fn set_cooking_options_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
172 }
173
174 pub fn get_skin_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
176 }
177
178 pub fn set_skin_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
180 }
181
182 pub fn get_smooth_sphere_collisions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
184 }
185
186 pub fn set_smooth_sphere_collisions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
188 }
189
190 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
192 }
193}
194
195#[cfg(feature = "unity_engine-meshcollider")]
196impl MeshCollider {
197 #[doc = "`.ctor()` — no args"]
198 pub fn new() -> Self {
199 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
200 panic!(
201 "{}
202::{}
203 failed to instantiate",
204 ::core::stringify!(MeshCollider),
205 ::core::stringify!(new),
206 )
207 });
208 <Self as IMeshColliderMethods>::ctor(this);
209 this
210 }
211}
212
213#[cfg(feature = "unity_engine-meshcollider")]
214#[doc(hidden)]
215pub mod prelude {
216 pub use super::{IMeshCollider, IMeshColliderMethods, MeshCollider};
217 #[cfg(feature = "system-object")]
218 pub use crate::system::object::IObjectMethods;
219 #[cfg(feature = "unity_engine-collider")]
220 pub use crate::unity_engine::collider::IColliderMethods;
221 #[cfg(feature = "unity_engine-component")]
222 pub use crate::unity_engine::component::IComponentMethods;
223 #[cfg(feature = "unity_engine-object_2")]
224 pub use crate::unity_engine::object_2::IObject_2Methods;
225 pub use crate::{
226 system::object::IObject,
227 unity_engine::{collider::ICollider, component::IComponent, object_2::IObject_2},
228 };
229}