engage/generated/unity_engine/ui/
basemesheffect.rs1#[cfg(feature = "unity_engine-ui-basemesheffect-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 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/basemesheffect/BaseMeshEffect.md"))]
20 #[::unity::class(namespace = "UnityEngine.UI", name = "BaseMeshEffect")]
21 #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
22 pub struct BaseMeshEffect {
23 #[offset(24)]
24 #[rename(name = "m_Graphic")]
25 pub m_graphic: crate::unity_engine::ui::graphic::Graphic,
26 }
27}
28
29#[cfg(feature = "unity_engine-ui-basemesheffect-types")]
30pub use __types::*;
31
32#[cfg(feature = "unity_engine-ui-basemesheffect")]
33pub trait IBaseMeshEffectMethods: IBaseMeshEffect {
34 #[doc = "`get_graphic()` overload"]
35 fn get_graphic(self) -> crate::unity_engine::ui::graphic::Graphic {
36 unsafe {
37 let __receiver = <BaseMeshEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x317b7a0usize)as*mut u8,crate::unity_engine::ui::graphic::Graphic;
39(BaseMeshEffect)__receiver)
40 }
41 }
42 #[doc = "`OnEnable()` overload"]
43 fn on_enable(self) -> () {
44 unsafe {
45 let __receiver = <BaseMeshEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 {
47 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
48 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
49 panic!(
50 "unity: virtual slot {}
51 out of range (vtable len {}
52) on the runtime class behind {}
53 (method `{}
54`)",
55 5usize,
56 __vt.len(),
57 <BaseMeshEffect as ::unity::ClassIdentity>::NAME,
58 "OnEnable",
59 )
60 });
61 let __inner: extern "C" fn(BaseMeshEffect, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
62 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
63 __inner(__receiver, __mi)
64 }
65 }
66 }
67 #[doc = "`OnDisable()` overload"]
68 fn on_disable(self) -> () {
69 unsafe {
70 let __receiver = <BaseMeshEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 {
72 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
74 panic!(
75 "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80 7usize,
81 __vt.len(),
82 <BaseMeshEffect as ::unity::ClassIdentity>::NAME,
83 "OnDisable",
84 )
85 });
86 let __inner: extern "C" fn(BaseMeshEffect, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
87 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
88 __inner(__receiver, __mi)
89 }
90 }
91 }
92 #[doc = "`OnDidApplyAnimationProperties()` overload"]
93 fn on_did_apply_animation_properties(self) -> () {
94 unsafe {
95 let __receiver = <BaseMeshEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 {
97 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
99 panic!(
100 "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105 13usize,
106 __vt.len(),
107 <BaseMeshEffect as ::unity::ClassIdentity>::NAME,
108 "OnDidApplyAnimationProperties",
109 )
110 });
111 let __inner: extern "C" fn(BaseMeshEffect, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
112 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
113 __inner(__receiver, __mi)
114 }
115 }
116 }
117 #[doc = "`ModifyMesh(crate::unity_engine::mesh::Mesh)` overload"]
118 fn modify_mesh(self, mesh: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>) -> () {
119 unsafe {
120 let __receiver = <BaseMeshEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 {
122 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
123 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
124 panic!(
125 "unity: virtual slot {}
126 out of range (vtable len {}
127) on the runtime class behind {}
128 (method `{}
129`)",
130 19usize,
131 __vt.len(),
132 <BaseMeshEffect as ::unity::ClassIdentity>::NAME,
133 "ModifyMesh",
134 )
135 });
136 let __inner: extern "C" fn(BaseMeshEffect, crate::unity_engine::mesh::Mesh, ::unity::OptionalMethod) -> () =
137 ::core::mem::transmute(__vi.method_ptr);
138 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
139 __inner(__receiver, ::core::convert::Into::into(mesh), __mi)
140 }
141 }
142 }
143 #[doc = "`ModifyMesh(crate::unity_engine::ui::vertexhelper::VertexHelper)` overload"]
144 fn modify_mesh_2(self, vh: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>) -> () {
145 unsafe {
146 let __receiver = <BaseMeshEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 {
148 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
149 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
150 panic!(
151 "unity: virtual slot {}
152 out of range (vtable len {}
153) on the runtime class behind {}
154 (method `{}
155`)",
156 20usize,
157 __vt.len(),
158 <BaseMeshEffect as ::unity::ClassIdentity>::NAME,
159 "ModifyMesh",
160 )
161 });
162 let __inner: extern "C" fn(BaseMeshEffect, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
163 ::core::mem::transmute(__vi.method_ptr);
164 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
165 __inner(__receiver, ::core::convert::Into::into(vh), __mi)
166 }
167 }
168 }
169 #[doc = "`.ctor()` overload"]
170 fn ctor(self) -> () {
171 unsafe {
172 let __receiver = <BaseMeshEffect as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x317bc00usize)as*mut u8,();
174(BaseMeshEffect)__receiver)
175 }
176 }
177}
178
179#[cfg(feature = "unity_engine-ui-basemesheffect")]
180impl<__T: IBaseMeshEffect> IBaseMeshEffectMethods for __T {}
181
182#[cfg(feature = "unity_engine-ui-basemesheffect")]
183impl BaseMeshEffect {
184 pub fn get_graphic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
186 }
187
188 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
190 }
191
192 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
194 }
195
196 pub fn on_did_apply_animation_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
198 }
199
200 pub fn modify_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
202 }
203
204 pub fn modify_mesh_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
206 }
207
208 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
210 }
211}
212
213#[cfg(feature = "unity_engine-ui-basemesheffect")]
214impl BaseMeshEffect {
215 #[doc = "Direct (non-virtual) call to `BaseMeshEffect`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
216 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
217 let __mi = Self::on_enable_method_info();
218 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
219 __inner(this.into(), ::core::option::Option::None)
220 }
221
222 #[doc = "Direct (non-virtual) call to `BaseMeshEffect`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
223 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
224 let __mi = Self::on_disable_method_info();
225 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
226 __inner(this.into(), ::core::option::Option::None)
227 }
228
229 #[doc = "Direct (non-virtual) call to `BaseMeshEffect`'s own `OnDidApplyAnimationProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230 pub unsafe fn on_did_apply_animation_properties(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
231 let __mi = Self::on_did_apply_animation_properties_method_info();
232 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
233 __inner(this.into(), ::core::option::Option::None)
234 }
235
236 #[doc = "Direct (non-virtual) call to `BaseMeshEffect`'s own `ModifyMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
237 pub unsafe fn modify_mesh(this: impl ::core::convert::Into<::unity::IlInstance>, mesh: crate::unity_engine::mesh::Mesh) -> () {
238 let __mi = Self::modify_mesh_method_info();
239 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::mesh::Mesh, ::unity::OptionalMethod) -> () =
240 ::core::mem::transmute(__mi.method_ptr);
241 __inner(this.into(), mesh, ::core::option::Option::None)
242 }
243
244 #[doc = "Direct (non-virtual) call to `BaseMeshEffect`'s own `ModifyMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
245 pub unsafe fn modify_mesh_2(
246 this: impl ::core::convert::Into<::unity::IlInstance>,
247 vh: crate::unity_engine::ui::vertexhelper::VertexHelper,
248 ) -> () {
249 let __mi = Self::modify_mesh_2_method_info();
250 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
251 ::core::mem::transmute(__mi.method_ptr);
252 __inner(this.into(), vh, ::core::option::Option::None)
253 }
254}
255
256#[cfg(feature = "unity_engine-ui-basemesheffect")]
257impl BaseMeshEffect {
258 #[doc = "`.ctor()` — no args"]
259 pub fn new() -> Self {
260 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
261 panic!(
262 "{}
263::{}
264 failed to instantiate",
265 ::core::stringify!(BaseMeshEffect),
266 ::core::stringify!(new),
267 )
268 });
269 <Self as IBaseMeshEffectMethods>::ctor(this);
270 this
271 }
272}
273
274#[cfg(feature = "unity_engine-ui-basemesheffect")]
275#[doc(hidden)]
276pub mod prelude {
277 pub use super::{BaseMeshEffect, IBaseMeshEffect, IBaseMeshEffectMethods};
278 #[cfg(feature = "system-object")]
279 pub use crate::system::object::IObjectMethods;
280 #[cfg(feature = "unity_engine-behaviour")]
281 pub use crate::unity_engine::behaviour::IBehaviourMethods;
282 #[cfg(feature = "unity_engine-component")]
283 pub use crate::unity_engine::component::IComponentMethods;
284 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
285 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
286 #[cfg(feature = "unity_engine-monobehaviour")]
287 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
288 #[cfg(feature = "unity_engine-object_2")]
289 pub use crate::unity_engine::object_2::IObject_2Methods;
290 pub use crate::{
291 system::object::IObject,
292 unity_engine::{
293 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
294 object_2::IObject_2,
295 },
296 };
297}