engage/generated/unity_engine/event_systems/
eventsystem.rs1#[cfg(feature = "unity_engine-event_systems-eventsystem-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/event_systems/eventsystem/EventSystem.md"))]
20 #[::unity::class(namespace = "UnityEngine.EventSystems", name = "EventSystem")]
21 #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
22 pub struct EventSystem {
23 #[offset(24)]
24 #[rename(name = "m_SystemInputModules")]
25 pub m_system_input_modules:
26 crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::baseinputmodule::BaseInputModule>,
27 #[offset(32)]
28 #[rename(name = "m_CurrentInputModule")]
29 pub m_current_input_module: crate::unity_engine::event_systems::baseinputmodule::BaseInputModule,
30 #[static_field]
31 #[rename(name = "m_EventSystems")]
32 pub m_event_systems: crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::eventsystem::EventSystem>,
33 #[offset(40)]
34 #[rename(name = "m_FirstSelected")]
35 pub m_first_selected: crate::unity_engine::gameobject::GameObject,
36 #[offset(48)]
37 #[rename(name = "m_sendNavigationEvents")]
38 pub m_send_navigation_events: bool,
39 #[offset(52)]
40 #[rename(name = "m_DragThreshold")]
41 pub m_drag_threshold: i32,
42 #[offset(56)]
43 #[rename(name = "m_CurrentSelected")]
44 pub m_current_selected: crate::unity_engine::gameobject::GameObject,
45 #[offset(64)]
46 #[rename(name = "m_HasFocus")]
47 pub m_has_focus: bool,
48 #[offset(65)]
49 #[rename(name = "m_SelectionGuard")]
50 pub m_selection_guard: bool,
51 #[offset(72)]
52 #[rename(name = "m_DummyData")]
53 pub m_dummy_data: crate::unity_engine::event_systems::baseeventdata::BaseEventData,
54 #[static_field]
55 #[rename(name = "s_RaycastComparer")]
56 pub s_raycast_comparer: crate::system::comparison_1::Comparison_1<crate::unity_engine::event_systems::raycastresult::RaycastResult>,
57 }
58}
59
60#[cfg(feature = "unity_engine-event_systems-eventsystem-types")]
61pub use __types::*;
62
63#[cfg(feature = "unity_engine-event_systems-eventsystem")]
64impl EventSystem {
65 #[doc = "`get_current()` overload"]
66 pub fn get_current() -> crate::unity_engine::event_systems::eventsystem::EventSystem {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x3187980usize)as*mut u8,crate::unity_engine::event_systems::eventsystem::EventSystem;
69 )
70 }
71 }
72
73 #[doc = "`set_current(crate::unity_engine::event_systems::eventsystem::EventSystem)` overload"]
74 pub fn set_current(value: impl ::core::convert::Into<crate::unity_engine::event_systems::eventsystem::EventSystem>) -> () {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x3187a50usize)as*mut u8,();
77(crate::unity_engine::event_systems::eventsystem::EventSystem)::core::convert::Into::into(value))
78 }
79 }
80
81 #[doc = "`RaycastComparer(crate::unity_engine::event_systems::raycastresult::RaycastResult, crate::unity_engine::event_systems::raycastresult::RaycastResult)` overload"]
82 pub fn raycast_comparer(
83 lhs: impl ::core::convert::Into<crate::unity_engine::event_systems::raycastresult::RaycastResult>,
84 rhs: impl ::core::convert::Into<crate::unity_engine::event_systems::raycastresult::RaycastResult>,
85 ) -> i32 {
86 unsafe {
87 ::unity::il2cpp_call!((::unity::module_base()+0x3187eb0usize)as*mut u8,i32;
88(crate::unity_engine::event_systems::raycastresult::RaycastResult)::core::convert::Into::into(lhs),(crate::unity_engine::event_systems::raycastresult::RaycastResult)::core::convert::Into::into(rhs))
89 }
90 }
91
92 #[doc = "`.cctor()` overload"]
93 pub fn cctor() -> () {
94 unsafe {
95 ::unity::il2cpp_call!((::unity::module_base()+0x3188da0usize)as*mut u8,();
96 )
97 }
98 }
99}
100
101#[cfg(feature = "unity_engine-event_systems-eventsystem")]
102pub trait IEventSystemMethods: IEventSystem {
103 #[doc = "`get_sendNavigationEvents()` overload"]
104 fn get_send_navigation_events(self) -> bool {
105 unsafe {
106 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x3187c10usize)as*mut u8,bool;
108(EventSystem)__receiver)
109 }
110 }
111 #[doc = "`set_sendNavigationEvents(bool)` overload"]
112 fn set_send_navigation_events(self, value: impl ::core::convert::Into<bool>) -> () {
113 unsafe {
114 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x3187c20usize)as*mut u8,();
116(EventSystem)__receiver,(bool)::core::convert::Into::into(value))
117 }
118 }
119 #[doc = "`get_pixelDragThreshold()` overload"]
120 fn get_pixel_drag_threshold(self) -> i32 {
121 unsafe {
122 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x3187c30usize)as*mut u8,i32;
124(EventSystem)__receiver)
125 }
126 }
127 #[doc = "`set_pixelDragThreshold(i32)` overload"]
128 fn set_pixel_drag_threshold(self, value: impl ::core::convert::Into<i32>) -> () {
129 unsafe {
130 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x3187c40usize)as*mut u8,();
132(EventSystem)__receiver,(i32)::core::convert::Into::into(value))
133 }
134 }
135 #[doc = "`get_currentInputModule()` overload"]
136 fn get_current_input_module(self) -> crate::unity_engine::event_systems::baseinputmodule::BaseInputModule {
137 unsafe {
138 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x3187c50usize)as*mut u8,crate::unity_engine::event_systems::baseinputmodule::BaseInputModule;
140(EventSystem)__receiver)
141 }
142 }
143 #[doc = "`get_firstSelectedGameObject()` overload"]
144 fn get_first_selected_game_object(self) -> crate::unity_engine::gameobject::GameObject {
145 unsafe {
146 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x3187c60usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
148(EventSystem)__receiver)
149 }
150 }
151 #[doc = "`set_firstSelectedGameObject(crate::unity_engine::gameobject::GameObject)` overload"]
152 fn set_first_selected_game_object(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
153 unsafe {
154 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x3187c70usize)as*mut u8,();
156(EventSystem)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
157 }
158 }
159 #[doc = "`get_currentSelectedGameObject()` overload"]
160 fn get_current_selected_game_object(self) -> crate::unity_engine::gameobject::GameObject {
161 unsafe {
162 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x3187c80usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
164(EventSystem)__receiver)
165 }
166 }
167 #[doc = "`get_lastSelectedGameObject()` overload"]
168 fn get_last_selected_game_object(self) -> crate::unity_engine::gameobject::GameObject {
169 unsafe {
170 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 ::unity::il2cpp_call!((::unity::module_base()+0x3187c90usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
172(EventSystem)__receiver)
173 }
174 }
175 #[doc = "`get_isFocused()` overload"]
176 fn get_is_focused(self) -> bool {
177 unsafe {
178 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x3187ca0usize)as*mut u8,bool;
180(EventSystem)__receiver)
181 }
182 }
183 #[doc = "`.ctor()` overload"]
184 fn ctor(self) -> () {
185 unsafe {
186 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 ::unity::il2cpp_call!((::unity::module_base()+0x3187cb0usize)as*mut u8,();
188(EventSystem)__receiver)
189 }
190 }
191 #[doc = "`UpdateModules()` overload"]
192 fn update_modules(self) -> () {
193 unsafe {
194 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x317a850usize)as*mut u8,();
196(EventSystem)__receiver)
197 }
198 }
199 #[doc = "`get_alreadySelecting()` overload"]
200 fn get_already_selecting(self) -> bool {
201 unsafe {
202 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x3187d50usize)as*mut u8,bool;
204(EventSystem)__receiver)
205 }
206 }
207 #[doc = "`SetSelectedGameObject(crate::unity_engine::gameobject::GameObject, crate::unity_engine::event_systems::baseeventdata::BaseEventData)` overload"]
208 fn set_selected_game_object(
209 self,
210 selected: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
211 pointer: impl ::core::convert::Into<crate::unity_engine::event_systems::baseeventdata::BaseEventData>,
212 ) -> () {
213 unsafe {
214 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x317a160usize)as*mut u8,();
216(EventSystem)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(selected),(crate::unity_engine::event_systems::baseeventdata::BaseEventData)::core::convert::Into::into(pointer))
217 }
218 }
219 #[doc = "`get_baseEventDataCache()` overload"]
220 fn get_base_event_data_cache(self) -> crate::unity_engine::event_systems::baseeventdata::BaseEventData {
221 unsafe {
222 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x3187d60usize)as*mut u8,crate::unity_engine::event_systems::baseeventdata::BaseEventData;
224(EventSystem)__receiver)
225 }
226 }
227 #[doc = "`SetSelectedGameObject(crate::unity_engine::gameobject::GameObject)` overload"]
228 fn set_selected_game_object_2(self, selected: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
229 unsafe {
230 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231 ::unity::il2cpp_call!((::unity::module_base()+0x3187e10usize)as*mut u8,();
232(EventSystem)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(selected))
233 }
234 }
235 #[doc = "`RaycastAll(crate::unity_engine::event_systems::pointereventdata::PointerEventData, crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::raycastresult::RaycastResult>)` overload"]
236 fn raycast_all(
237 self,
238 event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
239 raycast_results: impl ::core::convert::Into<
240 crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::raycastresult::RaycastResult>,
241 >,
242 ) -> () {
243 unsafe {
244 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x31881f0usize)as*mut u8,();
246(EventSystem)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(event_data),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::event_systems::raycastresult::RaycastResult>)::core::convert::Into::into(raycast_results))
247 }
248 }
249 #[doc = "`IsPointerOverGameObject()` overload"]
250 fn is_pointer_over_game_object(self) -> bool {
251 unsafe {
252 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x3188420usize)as*mut u8,bool;
254(EventSystem)__receiver)
255 }
256 }
257 #[doc = "`IsPointerOverGameObject(i32)` overload"]
258 fn is_pointer_over_game_object_2(self, pointer_id: impl ::core::convert::Into<i32>) -> bool {
259 unsafe {
260 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x31884d0usize)as*mut u8,bool;
262(EventSystem)__receiver,(i32)::core::convert::Into::into(pointer_id))
263 }
264 }
265 #[doc = "`OnEnable()` overload"]
266 fn on_enable(self) -> () {
267 unsafe {
268 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 {
270 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
271 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
272 panic!(
273 "unity: virtual slot {}
274 out of range (vtable len {}
275) on the runtime class behind {}
276 (method `{}
277`)",
278 5usize,
279 __vt.len(),
280 <EventSystem as ::unity::ClassIdentity>::NAME,
281 "OnEnable",
282 )
283 });
284 let __inner: extern "C" fn(EventSystem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
285 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
286 __inner(__receiver, __mi)
287 }
288 }
289 }
290 #[doc = "`OnDisable()` overload"]
291 fn on_disable(self) -> () {
292 unsafe {
293 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
294 {
295 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
296 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
297 panic!(
298 "unity: virtual slot {}
299 out of range (vtable len {}
300) on the runtime class behind {}
301 (method `{}
302`)",
303 7usize,
304 __vt.len(),
305 <EventSystem as ::unity::ClassIdentity>::NAME,
306 "OnDisable",
307 )
308 });
309 let __inner: extern "C" fn(EventSystem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
310 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
311 __inner(__receiver, __mi)
312 }
313 }
314 }
315 #[doc = "`TickModules()` overload"]
316 fn tick_modules(self) -> () {
317 unsafe {
318 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319 ::unity::il2cpp_call!((::unity::module_base()+0x3188730usize)as*mut u8,();
320(EventSystem)__receiver)
321 }
322 }
323 #[doc = "`OnApplicationFocus(bool)` overload"]
324 fn on_application_focus(self, has_focus: impl ::core::convert::Into<bool>) -> () {
325 unsafe {
326 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
327 {
328 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
329 let __vi = *__vt.get(17usize).unwrap_or_else(|| {
330 panic!(
331 "unity: virtual slot {}
332 out of range (vtable len {}
333) on the runtime class behind {}
334 (method `{}
335`)",
336 17usize,
337 __vt.len(),
338 <EventSystem as ::unity::ClassIdentity>::NAME,
339 "OnApplicationFocus",
340 )
341 });
342 let __inner: extern "C" fn(EventSystem, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
343 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
344 __inner(__receiver, ::core::convert::Into::into(has_focus), __mi)
345 }
346 }
347 }
348 #[doc = "`Update()` overload"]
349 fn update(self) -> () {
350 unsafe {
351 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
352 {
353 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
354 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
355 panic!(
356 "unity: virtual slot {}
357 out of range (vtable len {}
358) on the runtime class behind {}
359 (method `{}
360`)",
361 18usize,
362 __vt.len(),
363 <EventSystem as ::unity::ClassIdentity>::NAME,
364 "Update",
365 )
366 });
367 let __inner: extern "C" fn(EventSystem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
368 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
369 __inner(__receiver, __mi)
370 }
371 }
372 }
373 #[doc = "`ChangeEventModule(crate::unity_engine::event_systems::baseinputmodule::BaseInputModule)` overload"]
374 fn change_event_module(self, module: impl ::core::convert::Into<crate::unity_engine::event_systems::baseinputmodule::BaseInputModule>) -> () {
375 unsafe {
376 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
377 ::unity::il2cpp_call!((::unity::module_base()+0x3188b20usize)as*mut u8,();
378(EventSystem)__receiver,(crate::unity_engine::event_systems::baseinputmodule::BaseInputModule)::core::convert::Into::into(module))
379 }
380 }
381 #[doc = "`ToString()` overload"]
382 fn to_string(self) -> ::unity::Il2CppString {
383 unsafe {
384 let __receiver = <EventSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385 {
386 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
387 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
388 panic!(
389 "unity: virtual slot {}
390 out of range (vtable len {}
391) on the runtime class behind {}
392 (method `{}
393`)",
394 3usize,
395 __vt.len(),
396 <EventSystem as ::unity::ClassIdentity>::NAME,
397 "ToString",
398 )
399 });
400 let __inner: extern "C" fn(EventSystem, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
401 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
402 __inner(__receiver, __mi)
403 }
404 }
405 }
406}
407
408#[cfg(feature = "unity_engine-event_systems-eventsystem")]
409impl<__T: IEventSystem> IEventSystemMethods for __T {}
410
411#[cfg(feature = "unity_engine-event_systems-eventsystem")]
412impl EventSystem {
413 pub fn get_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
415 }
416
417 pub fn set_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
419 }
420
421 pub fn get_send_navigation_events_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
423 }
424
425 pub fn set_send_navigation_events_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
427 }
428
429 pub fn get_pixel_drag_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
431 }
432
433 pub fn set_pixel_drag_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
435 }
436
437 pub fn get_current_input_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
439 }
440
441 pub fn get_first_selected_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
443 }
444
445 pub fn set_first_selected_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
447 }
448
449 pub fn get_current_selected_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
451 }
452
453 pub fn get_last_selected_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
455 }
456
457 pub fn get_is_focused_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
459 }
460
461 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
462 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
463 }
464
465 pub fn update_modules_method_info() -> &'static ::unity::il2cpp::MethodInfo {
466 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
467 }
468
469 pub fn get_already_selecting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
470 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
471 }
472
473 pub fn set_selected_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
474 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
475 }
476
477 pub fn get_base_event_data_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
478 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
479 }
480
481 pub fn set_selected_game_object_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
482 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
483 }
484
485 pub fn raycast_comparer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
487 }
488
489 pub fn raycast_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
491 }
492
493 pub fn is_pointer_over_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
495 }
496
497 pub fn is_pointer_over_game_object_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
499 }
500
501 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
503 }
504
505 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
507 }
508
509 pub fn tick_modules_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
511 }
512
513 pub fn on_application_focus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
515 }
516
517 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
519 }
520
521 pub fn change_event_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
523 }
524
525 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
527 }
528
529 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
531 }
532}
533
534#[cfg(feature = "unity_engine-event_systems-eventsystem")]
535impl EventSystem {
536 #[doc = "Direct (non-virtual) call to `EventSystem`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
537 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
538 let __mi = Self::on_enable_method_info();
539 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
540 __inner(this.into(), ::core::option::Option::None)
541 }
542
543 #[doc = "Direct (non-virtual) call to `EventSystem`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
544 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
545 let __mi = Self::on_disable_method_info();
546 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
547 __inner(this.into(), ::core::option::Option::None)
548 }
549
550 #[doc = "Direct (non-virtual) call to `EventSystem`'s own `OnApplicationFocus`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
551 pub unsafe fn on_application_focus(this: impl ::core::convert::Into<::unity::IlInstance>, has_focus: bool) -> () {
552 let __mi = Self::on_application_focus_method_info();
553 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
554 __inner(this.into(), has_focus, ::core::option::Option::None)
555 }
556
557 #[doc = "Direct (non-virtual) call to `EventSystem`'s own `Update`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
558 pub unsafe fn update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
559 let __mi = Self::update_method_info();
560 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
561 __inner(this.into(), ::core::option::Option::None)
562 }
563
564 #[doc = "Direct (non-virtual) call to `EventSystem`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
565 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
566 let __mi = Self::to_string_method_info();
567 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
568 __inner(this.into(), ::core::option::Option::None)
569 }
570}
571
572#[cfg(feature = "unity_engine-event_systems-eventsystem")]
573impl EventSystem {
574 #[doc = "`.ctor()` — no args"]
575 pub fn new() -> Self {
576 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
577 panic!(
578 "{}
579::{}
580 failed to instantiate",
581 ::core::stringify!(EventSystem),
582 ::core::stringify!(new),
583 )
584 });
585 <Self as IEventSystemMethods>::ctor(this);
586 this
587 }
588}
589
590#[cfg(feature = "unity_engine-event_systems-eventsystem")]
591#[doc(hidden)]
592pub mod prelude {
593 pub use super::{EventSystem, IEventSystem, IEventSystemMethods};
594 #[cfg(feature = "system-object")]
595 pub use crate::system::object::IObjectMethods;
596 #[cfg(feature = "unity_engine-behaviour")]
597 pub use crate::unity_engine::behaviour::IBehaviourMethods;
598 #[cfg(feature = "unity_engine-component")]
599 pub use crate::unity_engine::component::IComponentMethods;
600 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
601 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
602 #[cfg(feature = "unity_engine-monobehaviour")]
603 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
604 #[cfg(feature = "unity_engine-object_2")]
605 pub use crate::unity_engine::object_2::IObject_2Methods;
606 pub use crate::{
607 system::object::IObject,
608 unity_engine::{
609 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
610 object_2::IObject_2,
611 },
612 };
613}