engage/generated/unity_engine/event_systems/
uibehaviour.rs1#[cfg(feature = "unity_engine-event_systems-uibehaviour-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 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/uibehaviour/UIBehaviour.md"))]
19 #[::unity::class(namespace = "UnityEngine.EventSystems", name = "UIBehaviour")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct UIBehaviour {}
22}
23
24#[cfg(feature = "unity_engine-event_systems-uibehaviour-types")]
25pub use __types::*;
26
27#[cfg(feature = "unity_engine-event_systems-uibehaviour")]
28pub trait IUIBehaviourMethods: IUIBehaviour {
29 #[doc = "`Awake()` overload"]
30 fn awake(self) -> () {
31 unsafe {
32 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33 {
34 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
35 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
36 panic!(
37 "unity: virtual slot {}
38 out of range (vtable len {}
39) on the runtime class behind {}
40 (method `{}
41`)",
42 4usize,
43 __vt.len(),
44 <UIBehaviour as ::unity::ClassIdentity>::NAME,
45 "Awake",
46 )
47 });
48 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
49 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
50 __inner(__receiver, __mi)
51 }
52 }
53 }
54 #[doc = "`OnEnable()` overload"]
55 fn on_enable(self) -> () {
56 unsafe {
57 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 {
59 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
60 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
61 panic!(
62 "unity: virtual slot {}
63 out of range (vtable len {}
64) on the runtime class behind {}
65 (method `{}
66`)",
67 5usize,
68 __vt.len(),
69 <UIBehaviour as ::unity::ClassIdentity>::NAME,
70 "OnEnable",
71 )
72 });
73 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
74 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
75 __inner(__receiver, __mi)
76 }
77 }
78 }
79 #[doc = "`Start()` overload"]
80 fn start(self) -> () {
81 unsafe {
82 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 {
84 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
86 panic!(
87 "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92 6usize,
93 __vt.len(),
94 <UIBehaviour as ::unity::ClassIdentity>::NAME,
95 "Start",
96 )
97 });
98 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
99 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
100 __inner(__receiver, __mi)
101 }
102 }
103 }
104 #[doc = "`OnDisable()` overload"]
105 fn on_disable(self) -> () {
106 unsafe {
107 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 {
109 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
110 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
111 panic!(
112 "unity: virtual slot {}
113 out of range (vtable len {}
114) on the runtime class behind {}
115 (method `{}
116`)",
117 7usize,
118 __vt.len(),
119 <UIBehaviour as ::unity::ClassIdentity>::NAME,
120 "OnDisable",
121 )
122 });
123 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
124 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125 __inner(__receiver, __mi)
126 }
127 }
128 }
129 #[doc = "`OnDestroy()` overload"]
130 fn on_destroy(self) -> () {
131 unsafe {
132 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 {
134 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
135 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
136 panic!(
137 "unity: virtual slot {}
138 out of range (vtable len {}
139) on the runtime class behind {}
140 (method `{}
141`)",
142 8usize,
143 __vt.len(),
144 <UIBehaviour as ::unity::ClassIdentity>::NAME,
145 "OnDestroy",
146 )
147 });
148 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
149 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
150 __inner(__receiver, __mi)
151 }
152 }
153 }
154 #[doc = "`IsActive()` overload"]
155 fn is_active(self) -> bool {
156 unsafe {
157 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 {
159 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
160 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
161 panic!(
162 "unity: virtual slot {}
163 out of range (vtable len {}
164) on the runtime class behind {}
165 (method `{}
166`)",
167 9usize,
168 __vt.len(),
169 <UIBehaviour as ::unity::ClassIdentity>::NAME,
170 "IsActive",
171 )
172 });
173 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
174 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
175 __inner(__receiver, __mi)
176 }
177 }
178 }
179 #[doc = "`OnRectTransformDimensionsChange()` overload"]
180 fn on_rect_transform_dimensions_change(self) -> () {
181 unsafe {
182 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 {
184 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
185 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
186 panic!(
187 "unity: virtual slot {}
188 out of range (vtable len {}
189) on the runtime class behind {}
190 (method `{}
191`)",
192 10usize,
193 __vt.len(),
194 <UIBehaviour as ::unity::ClassIdentity>::NAME,
195 "OnRectTransformDimensionsChange",
196 )
197 });
198 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
199 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
200 __inner(__receiver, __mi)
201 }
202 }
203 }
204 #[doc = "`OnBeforeTransformParentChanged()` overload"]
205 fn on_before_transform_parent_changed(self) -> () {
206 unsafe {
207 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 {
209 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
210 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
211 panic!(
212 "unity: virtual slot {}
213 out of range (vtable len {}
214) on the runtime class behind {}
215 (method `{}
216`)",
217 11usize,
218 __vt.len(),
219 <UIBehaviour as ::unity::ClassIdentity>::NAME,
220 "OnBeforeTransformParentChanged",
221 )
222 });
223 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
224 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
225 __inner(__receiver, __mi)
226 }
227 }
228 }
229 #[doc = "`OnTransformParentChanged()` overload"]
230 fn on_transform_parent_changed(self) -> () {
231 unsafe {
232 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233 {
234 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
235 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
236 panic!(
237 "unity: virtual slot {}
238 out of range (vtable len {}
239) on the runtime class behind {}
240 (method `{}
241`)",
242 12usize,
243 __vt.len(),
244 <UIBehaviour as ::unity::ClassIdentity>::NAME,
245 "OnTransformParentChanged",
246 )
247 });
248 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
249 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
250 __inner(__receiver, __mi)
251 }
252 }
253 }
254 #[doc = "`OnDidApplyAnimationProperties()` overload"]
255 fn on_did_apply_animation_properties(self) -> () {
256 unsafe {
257 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258 {
259 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
260 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
261 panic!(
262 "unity: virtual slot {}
263 out of range (vtable len {}
264) on the runtime class behind {}
265 (method `{}
266`)",
267 13usize,
268 __vt.len(),
269 <UIBehaviour as ::unity::ClassIdentity>::NAME,
270 "OnDidApplyAnimationProperties",
271 )
272 });
273 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
274 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
275 __inner(__receiver, __mi)
276 }
277 }
278 }
279 #[doc = "`OnCanvasGroupChanged()` overload"]
280 fn on_canvas_group_changed(self) -> () {
281 unsafe {
282 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283 {
284 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
285 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
286 panic!(
287 "unity: virtual slot {}
288 out of range (vtable len {}
289) on the runtime class behind {}
290 (method `{}
291`)",
292 14usize,
293 __vt.len(),
294 <UIBehaviour as ::unity::ClassIdentity>::NAME,
295 "OnCanvasGroupChanged",
296 )
297 });
298 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
299 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
300 __inner(__receiver, __mi)
301 }
302 }
303 }
304 #[doc = "`OnCanvasHierarchyChanged()` overload"]
305 fn on_canvas_hierarchy_changed(self) -> () {
306 unsafe {
307 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 {
309 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
310 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
311 panic!(
312 "unity: virtual slot {}
313 out of range (vtable len {}
314) on the runtime class behind {}
315 (method `{}
316`)",
317 15usize,
318 __vt.len(),
319 <UIBehaviour as ::unity::ClassIdentity>::NAME,
320 "OnCanvasHierarchyChanged",
321 )
322 });
323 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
324 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
325 __inner(__receiver, __mi)
326 }
327 }
328 }
329 #[doc = "`IsDestroyed()` overload"]
330 fn is_destroyed(self) -> bool {
331 unsafe {
332 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333 {
334 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
335 let __vi = *__vt.get(16usize).unwrap_or_else(|| {
336 panic!(
337 "unity: virtual slot {}
338 out of range (vtable len {}
339) on the runtime class behind {}
340 (method `{}
341`)",
342 16usize,
343 __vt.len(),
344 <UIBehaviour as ::unity::ClassIdentity>::NAME,
345 "IsDestroyed",
346 )
347 });
348 let __inner: extern "C" fn(UIBehaviour, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
349 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
350 __inner(__receiver, __mi)
351 }
352 }
353 }
354 #[doc = "`.ctor()` overload"]
355 fn ctor(self) -> () {
356 unsafe {
357 let __receiver = <UIBehaviour as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
358 ::unity::il2cpp_call!((::unity::module_base()+0x3c091a0usize)as*mut u8,();
359(UIBehaviour)__receiver)
360 }
361 }
362}
363
364#[cfg(feature = "unity_engine-event_systems-uibehaviour")]
365impl<__T: IUIBehaviour> IUIBehaviourMethods for __T {}
366
367#[cfg(feature = "unity_engine-event_systems-uibehaviour")]
368impl UIBehaviour {
369 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
371 }
372
373 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
375 }
376
377 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
379 }
380
381 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
383 }
384
385 pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
387 }
388
389 pub fn is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
391 }
392
393 pub fn on_rect_transform_dimensions_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
395 }
396
397 pub fn on_before_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
399 }
400
401 pub fn on_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
403 }
404
405 pub fn on_did_apply_animation_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
407 }
408
409 pub fn on_canvas_group_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
411 }
412
413 pub fn on_canvas_hierarchy_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
415 }
416
417 pub fn is_destroyed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
419 }
420
421 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
423 }
424}
425
426#[cfg(feature = "unity_engine-event_systems-uibehaviour")]
427impl UIBehaviour {
428 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
429 pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
430 let __mi = Self::awake_method_info();
431 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
432 __inner(this.into(), ::core::option::Option::None)
433 }
434
435 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
436 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
437 let __mi = Self::on_enable_method_info();
438 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
439 __inner(this.into(), ::core::option::Option::None)
440 }
441
442 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
443 pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
444 let __mi = Self::start_method_info();
445 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
446 __inner(this.into(), ::core::option::Option::None)
447 }
448
449 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
450 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
451 let __mi = Self::on_disable_method_info();
452 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
453 __inner(this.into(), ::core::option::Option::None)
454 }
455
456 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnDestroy`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
457 pub unsafe fn on_destroy(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
458 let __mi = Self::on_destroy_method_info();
459 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
460 __inner(this.into(), ::core::option::Option::None)
461 }
462
463 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `IsActive`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
464 pub unsafe fn is_active(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
465 let __mi = Self::is_active_method_info();
466 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
467 __inner(this.into(), ::core::option::Option::None)
468 }
469
470 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnRectTransformDimensionsChange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
471 pub unsafe fn on_rect_transform_dimensions_change(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
472 let __mi = Self::on_rect_transform_dimensions_change_method_info();
473 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
474 __inner(this.into(), ::core::option::Option::None)
475 }
476
477 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnBeforeTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
478 pub unsafe fn on_before_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
479 let __mi = Self::on_before_transform_parent_changed_method_info();
480 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
481 __inner(this.into(), ::core::option::Option::None)
482 }
483
484 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
485 pub unsafe fn on_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
486 let __mi = Self::on_transform_parent_changed_method_info();
487 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
488 __inner(this.into(), ::core::option::Option::None)
489 }
490
491 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnDidApplyAnimationProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
492 pub unsafe fn on_did_apply_animation_properties(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
493 let __mi = Self::on_did_apply_animation_properties_method_info();
494 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
495 __inner(this.into(), ::core::option::Option::None)
496 }
497
498 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnCanvasGroupChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
499 pub unsafe fn on_canvas_group_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
500 let __mi = Self::on_canvas_group_changed_method_info();
501 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
502 __inner(this.into(), ::core::option::Option::None)
503 }
504
505 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `OnCanvasHierarchyChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
506 pub unsafe fn on_canvas_hierarchy_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
507 let __mi = Self::on_canvas_hierarchy_changed_method_info();
508 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
509 __inner(this.into(), ::core::option::Option::None)
510 }
511
512 #[doc = "Direct (non-virtual) call to `UIBehaviour`'s own `IsDestroyed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
513 pub unsafe fn is_destroyed(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
514 let __mi = Self::is_destroyed_method_info();
515 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
516 __inner(this.into(), ::core::option::Option::None)
517 }
518}
519
520#[cfg(feature = "unity_engine-event_systems-uibehaviour")]
521impl UIBehaviour {
522 #[doc = "`.ctor()` — no args"]
523 pub fn new() -> Self {
524 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
525 panic!(
526 "{}
527::{}
528 failed to instantiate",
529 ::core::stringify!(UIBehaviour),
530 ::core::stringify!(new),
531 )
532 });
533 <Self as IUIBehaviourMethods>::ctor(this);
534 this
535 }
536}
537
538#[cfg(feature = "unity_engine-event_systems-uibehaviour")]
539#[doc(hidden)]
540pub mod prelude {
541 pub use super::{IUIBehaviour, IUIBehaviourMethods, UIBehaviour};
542 #[cfg(feature = "system-object")]
543 pub use crate::system::object::IObjectMethods;
544 #[cfg(feature = "unity_engine-behaviour")]
545 pub use crate::unity_engine::behaviour::IBehaviourMethods;
546 #[cfg(feature = "unity_engine-component")]
547 pub use crate::unity_engine::component::IComponentMethods;
548 #[cfg(feature = "unity_engine-monobehaviour")]
549 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
550 #[cfg(feature = "unity_engine-object_2")]
551 pub use crate::unity_engine::object_2::IObject_2Methods;
552 pub use crate::{
553 system::object::IObject,
554 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
555 };
556}