engage/generated/unity_engine/ui/
vertexhelper.rs1#[cfg(feature = "unity_engine-ui-vertexhelper-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/ui/vertexhelper/VertexHelper.md"))]
11 #[::unity::class(namespace = "UnityEngine.UI", name = "VertexHelper")]
12 #[parent(crate::system::object::Object)]
13 pub struct VertexHelper {
14 #[offset(16)]
15 #[rename(name = "m_Positions")]
16 pub m_positions: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>,
17 #[offset(24)]
18 #[rename(name = "m_Colors")]
19 pub m_colors: crate::system::collections::generic::list_1::List_1<crate::unity_engine::color32::Color32>,
20 #[offset(32)]
21 #[rename(name = "m_Uv0S")]
22 pub m_uv0_s: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>,
23 #[offset(40)]
24 #[rename(name = "m_Uv1S")]
25 pub m_uv1_s: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>,
26 #[offset(48)]
27 #[rename(name = "m_Uv2S")]
28 pub m_uv2_s: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>,
29 #[offset(56)]
30 #[rename(name = "m_Uv3S")]
31 pub m_uv3_s: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>,
32 #[offset(64)]
33 #[rename(name = "m_Normals")]
34 pub m_normals: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>,
35 #[offset(72)]
36 #[rename(name = "m_Tangents")]
37 pub m_tangents: crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>,
38 #[offset(80)]
39 #[rename(name = "m_Indices")]
40 pub m_indices: crate::system::collections::generic::list_1::List_1<i32>,
41 #[static_field]
42 #[rename(name = "s_DefaultTangent")]
43 pub s_default_tangent: crate::unity_engine::vector4::Vector4,
44 #[static_field]
45 #[rename(name = "s_DefaultNormal")]
46 pub s_default_normal: crate::unity_engine::vector3::Vector3,
47 #[offset(88)]
48 #[rename(name = "m_ListsInitalized")]
49 pub m_lists_initalized: bool,
50 }
51}
52
53#[cfg(feature = "unity_engine-ui-vertexhelper-types")]
54pub use __types::*;
55
56#[cfg(feature = "unity_engine-ui-vertexhelper")]
57impl VertexHelper {
58 #[doc = "`.cctor()` overload"]
59 pub fn cctor() -> () {
60 unsafe {
61 ::unity::il2cpp_call!((::unity::module_base()+0x3c0bbb0usize)as*mut u8,();
62 )
63 }
64 }
65}
66
67#[cfg(feature = "unity_engine-ui-vertexhelper")]
68pub trait IVertexHelperMethods: IVertexHelper {
69 #[doc = "`.ctor()` overload"]
70 fn ctor(self) -> () {
71 unsafe {
72 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x3c0a7f0usize)as*mut u8,();
74(VertexHelper)__receiver)
75 }
76 }
77 #[doc = "`.ctor(crate::unity_engine::mesh::Mesh)` overload"]
78 fn ctor_2(self, m: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
79 unsafe {
80 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x3c0a800usize)as*mut u8,();
82(VertexHelper)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(m))
83 }
84 }
85 #[doc = "`InitializeListIfRequired()` overload"]
86 fn initialize_list_if_required(self) -> () {
87 unsafe {
88 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x3c0aa30usize)as*mut u8,();
90(VertexHelper)__receiver)
91 }
92 }
93 #[doc = "`Dispose()` overload"]
94 fn dispose(self) -> () {
95 unsafe {
96 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 {
98 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
99 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
100 panic!(
101 "unity: virtual slot {}
102 out of range (vtable len {}
103) on the runtime class behind {}
104 (method `{}
105`)",
106 4usize,
107 __vt.len(),
108 <VertexHelper as ::unity::ClassIdentity>::NAME,
109 "Dispose",
110 )
111 });
112 let __inner: extern "C" fn(VertexHelper, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
113 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
114 __inner(__receiver, __mi)
115 }
116 }
117 }
118 #[doc = "`Clear()` overload"]
119 fn clear(self) -> () {
120 unsafe {
121 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x3c07640usize)as*mut u8,();
123(VertexHelper)__receiver)
124 }
125 }
126 #[doc = "`get_currentVertCount()` overload"]
127 fn get_current_vert_count(self) -> i32 {
128 unsafe {
129 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x3c0af10usize)as*mut u8,i32;
131(VertexHelper)__receiver)
132 }
133 }
134 #[doc = "`get_currentIndexCount()` overload"]
135 fn get_current_index_count(self) -> i32 {
136 unsafe {
137 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 ::unity::il2cpp_call!((::unity::module_base()+0x3c0af70usize)as*mut u8,i32;
139(VertexHelper)__receiver)
140 }
141 }
142 #[doc = "`PopulateUIVertex(*mutcrate::unity_engine::uivertex::UIVertex, i32)` overload"]
143 fn populate_ui_vertex(self, i: impl ::core::convert::Into<i32>) -> crate::unity_engine::uivertex::UIVertex {
144 unsafe {
145 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::uivertex::UIVertex>::uninit();
147 ::unity::il2cpp_call!((::unity::module_base()+0x3c0afd0usize)as*mut u8,();
148(VertexHelper)__receiver,(*mut crate::unity_engine::uivertex::UIVertex)__out_0.as_mut_ptr(),(i32)::core::convert::Into::into(i));
149 __out_0.assume_init()
150 }
151 }
152 #[doc = "`SetUIVertex(crate::unity_engine::uivertex::UIVertex, i32)` overload"]
153 fn set_ui_vertex(self, vertex: impl ::core::convert::Into<crate::unity_engine::uivertex::UIVertex>, i: impl ::core::convert::Into<i32>) -> () {
154 unsafe {
155 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x3c0b1d0usize)as*mut u8,();
157(VertexHelper)__receiver,(crate::unity_engine::uivertex::UIVertex)::core::convert::Into::into(vertex),(i32)::core::convert::Into::into(i))
158 }
159 }
160 #[doc = "`FillMesh(crate::unity_engine::mesh::Mesh)` overload"]
161 fn fill_mesh(self, mesh: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
162 unsafe {
163 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x3c0b320usize)as*mut u8,();
165(VertexHelper)__receiver,(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(mesh))
166 }
167 }
168 #[doc = "`AddVert(crate::unity_engine::vector3::Vector3, crate::unity_engine::color32::Color32, crate::unity_engine::vector4::Vector4, crate::unity_engine::vector4::Vector4, crate::unity_engine::vector4::Vector4, crate::unity_engine::vector4::Vector4, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector4::Vector4)` overload"]
169 fn add_vert(
170 self,
171 position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
172 color: impl ::core::convert::Into<crate::unity_engine::color32::Color32>,
173 uv0: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
174 uv1: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
175 uv2: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
176 uv3: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
177 normal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
178 tangent: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
179 ) -> () {
180 unsafe {
181 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 ::unity::il2cpp_call!((::unity::module_base()+0x3c0b480usize)as*mut u8,();
183(VertexHelper)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(position),(crate::unity_engine::color32::Color32)::core::convert::Into::into(color),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(uv0),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(uv1),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(uv2),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(uv3),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(normal),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(tangent))
184 }
185 }
186 #[doc = "`AddVert(crate::unity_engine::vector3::Vector3, crate::unity_engine::color32::Color32, crate::unity_engine::vector4::Vector4, crate::unity_engine::vector4::Vector4, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector4::Vector4)` overload"]
187 fn add_vert_2(
188 self,
189 position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
190 color: impl ::core::convert::Into<crate::unity_engine::color32::Color32>,
191 uv0: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
192 uv1: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
193 normal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
194 tangent: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
195 ) -> () {
196 unsafe {
197 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 ::unity::il2cpp_call!((::unity::module_base()+0x3c0b690usize)as*mut u8,();
199(VertexHelper)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(position),(crate::unity_engine::color32::Color32)::core::convert::Into::into(color),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(uv0),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(uv1),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(normal),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(tangent))
200 }
201 }
202 #[doc = "`AddVert(crate::unity_engine::vector3::Vector3, crate::unity_engine::color32::Color32, crate::unity_engine::vector4::Vector4)` overload"]
203 fn add_vert_3(
204 self,
205 position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
206 color: impl ::core::convert::Into<crate::unity_engine::color32::Color32>,
207 uv0: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
208 ) -> () {
209 unsafe {
210 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x3c0b7a0usize)as*mut u8,();
212(VertexHelper)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(position),(crate::unity_engine::color32::Color32)::core::convert::Into::into(color),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(uv0))
213 }
214 }
215 #[doc = "`AddVert(crate::unity_engine::uivertex::UIVertex)` overload"]
216 fn add_vert_4(self, v: impl ::core::convert::Into<crate::unity_engine::uivertex::UIVertex>) -> () {
217 unsafe {
218 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x3c0b900usize)as*mut u8,();
220(VertexHelper)__receiver,(crate::unity_engine::uivertex::UIVertex)::core::convert::Into::into(v))
221 }
222 }
223 #[doc = "`AddTriangle(i32, i32, i32)` overload"]
224 fn add_triangle(self, idx0: impl ::core::convert::Into<i32>, idx1: impl ::core::convert::Into<i32>, idx2: impl ::core::convert::Into<i32>) -> () {
225 unsafe {
226 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x3c0b9a0usize)as*mut u8,();
228(VertexHelper)__receiver,(i32)::core::convert::Into::into(idx0),(i32)::core::convert::Into::into(idx1),(i32)::core::convert::Into::into(idx2))
229 }
230 }
231 #[doc = "`AddUIVertexQuad(::unity::Array<crate::unity_engine::uivertex::UIVertex>)` overload"]
232 fn add_ui_vertex_quad(self, verts: impl ::core::convert::Into<::unity::Array<crate::unity_engine::uivertex::UIVertex>>) -> () {
233 unsafe {
234 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x3c07760usize)as*mut u8,();
236(VertexHelper)__receiver,(::unity::Array<crate::unity_engine::uivertex::UIVertex>)::core::convert::Into::into(verts))
237 }
238 }
239 #[doc = "`AddUIVertexStream(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>, crate::system::collections::generic::list_1::List_1<i32>)` overload"]
240 fn add_ui_vertex_stream(
241 self,
242 verts: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>>,
243 indices: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<i32>>,
244 ) -> () {
245 unsafe {
246 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247 ::unity::il2cpp_call!((::unity::module_base()+0x3c0ba40usize)as*mut u8,();
248(VertexHelper)__receiver,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)::core::convert::Into::into(verts),(crate::system::collections::generic::list_1::List_1<i32>)::core::convert::Into::into(indices))
249 }
250 }
251 #[doc = "`AddUIVertexTriangleStream(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)` overload"]
252 fn add_ui_vertex_triangle_stream(
253 self,
254 verts: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>>,
255 ) -> () {
256 unsafe {
257 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258 ::unity::il2cpp_call!((::unity::module_base()+0x3c0baf0usize)as*mut u8,();
259(VertexHelper)__receiver,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)::core::convert::Into::into(verts))
260 }
261 }
262 #[doc = "`GetUIVertexStream(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)` overload"]
263 fn get_ui_vertex_stream(
264 self,
265 stream: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>>,
266 ) -> () {
267 unsafe {
268 let __receiver = <VertexHelper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x3c0bb50usize)as*mut u8,();
270(VertexHelper)__receiver,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>)::core::convert::Into::into(stream))
271 }
272 }
273}
274
275#[cfg(feature = "unity_engine-ui-vertexhelper")]
276impl<__T: IVertexHelper> IVertexHelperMethods for __T {}
277
278#[cfg(feature = "unity_engine-ui-vertexhelper")]
279impl VertexHelper {
280 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
282 }
283
284 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
286 }
287
288 pub fn initialize_list_if_required_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
290 }
291
292 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
294 }
295
296 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
298 }
299
300 pub fn get_current_vert_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
302 }
303
304 pub fn get_current_index_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
306 }
307
308 pub fn populate_ui_vertex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
310 }
311
312 pub fn set_ui_vertex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
314 }
315
316 pub fn fill_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
318 }
319
320 pub fn add_vert_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
322 }
323
324 pub fn add_vert_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
326 }
327
328 pub fn add_vert_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
330 }
331
332 pub fn add_vert_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
334 }
335
336 pub fn add_triangle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
338 }
339
340 pub fn add_ui_vertex_quad_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
342 }
343
344 pub fn add_ui_vertex_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
346 }
347
348 pub fn add_ui_vertex_triangle_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
350 }
351
352 pub fn get_ui_vertex_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
354 }
355
356 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
358 }
359}
360
361#[cfg(feature = "unity_engine-ui-vertexhelper")]
362impl VertexHelper {
363 #[doc = "Direct (non-virtual) call to `VertexHelper`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
364 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
365 let __mi = Self::dispose_method_info();
366 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
367 __inner(this.into(), ::core::option::Option::None)
368 }
369}
370
371#[cfg(feature = "unity_engine-ui-vertexhelper")]
372impl VertexHelper {
373 #[doc = "`.ctor()` — no args"]
374 pub fn new() -> Self {
375 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
376 panic!(
377 "{}
378::{}
379 failed to instantiate",
380 ::core::stringify!(VertexHelper),
381 ::core::stringify!(new),
382 )
383 });
384 <Self as IVertexHelperMethods>::ctor(this);
385 this
386 }
387
388 #[doc = "`.ctor(crate::unity_engine::mesh::Mesh)` — overload selector"]
389 pub fn new_2(m: crate::unity_engine::mesh::Mesh) -> Self {
390 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
391 panic!(
392 "{}
393::{}
394 failed to instantiate",
395 ::core::stringify!(VertexHelper),
396 ::core::stringify!(new_2),
397 )
398 });
399 <Self as IVertexHelperMethods>::ctor_2(this, m);
400 this
401 }
402}
403
404#[cfg(feature = "unity_engine-ui-vertexhelper")]
405#[doc(hidden)]
406pub mod prelude {
407 pub use super::{IVertexHelper, IVertexHelperMethods, VertexHelper};
408 pub use crate::system::object::IObject;
409 #[cfg(feature = "system-object")]
410 pub use crate::system::object::IObjectMethods;
411}