engage/generated/unity_engine/animations/
animationremovescaleplayable.rs1#[cfg(feature = "unity_engine-animations-animationremovescaleplayable-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/animations/animationremovescaleplayable/AnimationRemoveScalePlayable.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct AnimationRemoveScalePlayable {
17 pub m_handle: crate::unity_engine::playables::playablehandle::PlayableHandle,
18 }
19 impl ::unity::ClassIdentity for AnimationRemoveScalePlayable {
20 const NAME: &'static str = "AnimationRemoveScalePlayable";
21 const NAMESPACE: &'static str = "UnityEngine.Animations";
22
23 fn class() -> ::unity::Class {
24 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26 }
27 }
28 impl ::unity::IlType for AnimationRemoveScalePlayable {
29 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31 }
32 }
33 impl AnimationRemoveScalePlayable {
34 #[inline]
35 pub fn m_null_playable() -> crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable {
36 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
37 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "m_NullPlayable");
38 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
39 }
40
41 #[inline]
42 pub fn set_m_null_playable(value: crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable) {
43 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
44 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "m_NullPlayable");
45 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
46 }
47 }
48}
49
50#[cfg(feature = "unity_engine-animations-animationremovescaleplayable-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-animations-animationremovescaleplayable")]
54impl AnimationRemoveScalePlayable {
55 #[doc = "`Create(crate::unity_engine::playables::playablegraph::PlayableGraph, i32)` overload"]
56 pub fn create(
57 graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
58 input_count: impl ::core::convert::Into<i32>,
59 ) -> crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable {
60 unsafe {
61 ::unity::il2cpp_call!((::unity::module_base()+0x3eafc00usize)as*mut u8,crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable;
62(crate::unity_engine::playables::playablegraph::PlayableGraph)::core::convert::Into::into(graph),(i32)::core::convert::Into::into(input_count))
63 }
64 }
65
66 #[doc = "`CreateHandle(crate::unity_engine::playables::playablegraph::PlayableGraph, i32)` overload"]
67 pub fn create_handle(
68 graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
69 input_count: impl ::core::convert::Into<i32>,
70 ) -> crate::unity_engine::playables::playablehandle::PlayableHandle {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x3eafcb0usize)as*mut u8,crate::unity_engine::playables::playablehandle::PlayableHandle;
73(crate::unity_engine::playables::playablegraph::PlayableGraph)::core::convert::Into::into(graph),(i32)::core::convert::Into::into(input_count))
74 }
75 }
76
77 #[doc = "`op_Implicit(crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable)` overload"]
78 pub fn op_implicit(
79 playable: impl ::core::convert::Into<crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable>,
80 ) -> crate::unity_engine::playables::playable::Playable {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x3eaffc0usize)as*mut u8,crate::unity_engine::playables::playable::Playable;
83(crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable)::core::convert::Into::into(playable))
84 }
85 }
86
87 #[doc = "`CreateHandleInternal(crate::unity_engine::playables::playablegraph::PlayableGraph, *mutcrate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
88 pub fn create_handle_internal(
89 graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
90 ) -> (bool, crate::unity_engine::playables::playablehandle::PlayableHandle) {
91 unsafe {
92 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::playables::playablehandle::PlayableHandle>::uninit();
93 let __ret = {
94 ::unity::il2cpp_call!((::unity::module_base()+0x3eaff00usize)as*mut u8,bool;
95(crate::unity_engine::playables::playablegraph::PlayableGraph)::core::convert::Into::into(graph),(*mut crate::unity_engine::playables::playablehandle::PlayableHandle)__out_0.as_mut_ptr())
96 };
97 (__ret, __out_0.assume_init())
98 }
99 }
100
101 #[doc = "`.cctor()` overload"]
102 pub fn cctor() -> () {
103 unsafe {
104 ::unity::il2cpp_call!((::unity::module_base()+0x3eb0120usize)as*mut u8,();
105 )
106 }
107 }
108
109 #[doc = "`CreateHandleInternal_Injected(*mutcrate::unity_engine::playables::playablegraph::PlayableGraph, *mutcrate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
110 pub fn create_handle_internal_injected() -> (
111 bool,
112 crate::unity_engine::playables::playablegraph::PlayableGraph,
113 crate::unity_engine::playables::playablehandle::PlayableHandle,
114 ) {
115 unsafe {
116 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::playables::playablegraph::PlayableGraph>::uninit();
117 let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::playables::playablehandle::PlayableHandle>::uninit();
118 let __ret = {
119 ::unity::il2cpp_call!((::unity::module_base()+0x3eb00d0usize)as*mut u8,bool;
120(*mut crate::unity_engine::playables::playablegraph::PlayableGraph)__out_0.as_mut_ptr(),(*mut crate::unity_engine::playables::playablehandle::PlayableHandle)__out_1.as_mut_ptr())
121 };
122 (__ret, __out_0.assume_init(), __out_1.assume_init())
123 }
124 }
125}
126
127#[cfg(feature = "unity_engine-animations-animationremovescaleplayable")]
128impl AnimationRemoveScalePlayable {
129 #[doc = "`.ctor(crate::unity_engine::playables::playablehandle::PlayableHandle)` overload"]
130 pub fn ctor(&mut self, handle: impl ::core::convert::Into<crate::unity_engine::playables::playablehandle::PlayableHandle>) -> () {
131 unsafe {
132 ::unity::il2cpp_call!((::unity::module_base()+0x3eafe40usize)as*mut u8,();
133(*mut AnimationRemoveScalePlayable)self as*mut AnimationRemoveScalePlayable,(crate::unity_engine::playables::playablehandle::PlayableHandle)::core::convert::Into::into(handle))
134 }
135 }
136
137 #[doc = "`GetHandle()` overload"]
138 pub fn get_handle(&mut self) -> crate::unity_engine::playables::playablehandle::PlayableHandle {
139 unsafe {
140 ::unity::il2cpp_call!((::unity::module_base()+0x3eaffb0usize)as*mut u8,crate::unity_engine::playables::playablehandle::PlayableHandle;
141(*mut AnimationRemoveScalePlayable)self as*mut AnimationRemoveScalePlayable)
142 }
143 }
144
145 #[doc = "`Equals(crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable)` overload"]
146 pub fn equals(
147 &mut self,
148 other: impl ::core::convert::Into<crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable>,
149 ) -> bool {
150 unsafe {
151 ::unity::il2cpp_call!((::unity::module_base()+0x3eb0000usize)as*mut u8,bool;
152(*mut AnimationRemoveScalePlayable)self as*mut AnimationRemoveScalePlayable,(crate::unity_engine::animations::animationremovescaleplayable::AnimationRemoveScalePlayable)::core::convert::Into::into(other))
153 }
154 }
155}
156
157#[cfg(feature = "unity_engine-animations-animationremovescaleplayable")]
158impl AnimationRemoveScalePlayable {
159 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
161 }
162
163 pub fn create_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
165 }
166
167 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
169 }
170
171 pub fn get_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
173 }
174
175 pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
177 }
178
179 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
181 }
182
183 pub fn create_handle_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
185 }
186
187 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
189 }
190
191 pub fn create_handle_internal_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
193 }
194}
195
196#[cfg(feature = "unity_engine-animations-animationremovescaleplayable")]
197#[doc(hidden)]
198pub mod prelude {
199 pub use super::AnimationRemoveScalePlayable;
200 #[cfg(feature = "system-object")]
201 pub use crate::system::object::IObjectMethods;
202 #[cfg(feature = "system-valuetype")]
203 pub use crate::system::valuetype::IValueTypeMethods;
204 pub use crate::system::{object::IObject, valuetype::IValueType};
205}