engage/generated/root/
uvscroll.rs1#[cfg(feature = "root-uvscroll-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 root::materialbehaviour::{IMaterialBehaviour, MaterialBehaviour},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/uvscroll/UVScroll.md"))]
20 #[::unity::class(namespace = "", name = "UVScroll")]
21 #[parent(crate::root::materialbehaviour::MaterialBehaviour)]
22 pub struct UVScroll {
23 #[offset(80)]
24 #[rename(name = "m_Scroll")]
25 pub m_scroll: crate::unity_engine::vector2::Vector2,
26 #[offset(88)]
27 #[rename(name = "m_Step")]
28 pub m_step: bool,
29 }
30}
31
32#[cfg(feature = "root-uvscroll-types")]
33pub use __types::*;
34
35#[cfg(feature = "root-uvscroll")]
36pub trait IUVScrollMethods: IUVScroll {
37 #[doc = "`Start()` overload"]
38 fn start(self) -> () {
39 unsafe {
40 let __receiver = <UVScroll as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x1a077a0usize)as*mut u8,();
42(UVScroll)__receiver)
43 }
44 }
45 #[doc = "`LateUpdate()` overload"]
46 fn late_update(self) -> () {
47 unsafe {
48 let __receiver = <UVScroll as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x1a077b0usize)as*mut u8,();
50(UVScroll)__receiver)
51 }
52 }
53 #[doc = "`.ctor()` overload"]
54 fn ctor(self) -> () {
55 unsafe {
56 let __receiver = <UVScroll as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x1a07850usize)as*mut u8,();
58(UVScroll)__receiver)
59 }
60 }
61}
62
63#[cfg(feature = "root-uvscroll")]
64impl<__T: IUVScroll> IUVScrollMethods for __T {}
65
66#[cfg(feature = "root-uvscroll")]
67impl UVScroll {
68 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
70 }
71
72 pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
74 }
75
76 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
78 }
79}
80
81#[cfg(feature = "root-uvscroll")]
82impl UVScroll {
83 #[doc = "`.ctor()` — no args"]
84 pub fn new() -> Self {
85 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
86 panic!(
87 "{}
88::{}
89 failed to instantiate",
90 ::core::stringify!(UVScroll),
91 ::core::stringify!(new),
92 )
93 });
94 <Self as IUVScrollMethods>::ctor(this);
95 this
96 }
97}
98
99#[cfg(feature = "root-uvscroll")]
100#[doc(hidden)]
101pub mod prelude {
102 pub use super::{IUVScroll, IUVScrollMethods, UVScroll};
103 #[cfg(feature = "root-materialbehaviour")]
104 pub use crate::root::materialbehaviour::IMaterialBehaviourMethods;
105 #[cfg(feature = "system-object")]
106 pub use crate::system::object::IObjectMethods;
107 #[cfg(feature = "unity_engine-behaviour")]
108 pub use crate::unity_engine::behaviour::IBehaviourMethods;
109 #[cfg(feature = "unity_engine-component")]
110 pub use crate::unity_engine::component::IComponentMethods;
111 #[cfg(feature = "unity_engine-monobehaviour")]
112 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
113 #[cfg(feature = "unity_engine-object_2")]
114 pub use crate::unity_engine::object_2::IObject_2Methods;
115 pub use crate::{
116 root::materialbehaviour::IMaterialBehaviour,
117 system::object::IObject,
118 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
119 };
120}