1#[cfg(feature = "unity_engine-timeline-timelineasset-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 object_2::{IObject_2, Object_2},
16 playables::playableasset::{IPlayableAsset, PlayableAsset},
17 scriptableobject::{IScriptableObject, ScriptableObject},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/timelineasset/TimelineAsset.md"))]
22 #[::unity::class(namespace = "UnityEngine.Timeline", name = "TimelineAsset")]
23 #[parent(crate::unity_engine::playables::playableasset::PlayableAsset)]
24 pub struct TimelineAsset {
25 #[static_field]
26 #[rename(name = "k_LatestVersion")]
27 pub k_latest_version: i32,
28 #[offset(24)]
29 #[rename(name = "m_Version")]
30 pub m_version: i32,
31 #[offset(32)]
32 #[rename(name = "m_Tracks")]
33 pub m_tracks: crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject>,
34 #[offset(40)]
35 #[rename(name = "m_FixedDuration")]
36 pub m_fixed_duration: f64,
37 #[offset(48)]
38 #[rename(name = "m_CacheOutputTracks")]
39 pub m_cache_output_tracks: ::unity::Array<crate::unity_engine::timeline::trackasset::TrackAsset>,
40 #[offset(56)]
41 #[rename(name = "m_CacheRootTracks")]
42 pub m_cache_root_tracks: crate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::trackasset::TrackAsset>,
43 #[offset(64)]
44 #[rename(name = "m_CacheFlattenedTracks")]
45 pub m_cache_flattened_tracks: crate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::trackasset::TrackAsset>,
46 #[offset(72)]
47 #[rename(name = "m_EditorSettings")]
48 pub m_editor_settings: crate::unity_engine::timeline::timelineasset::TimelineAsset_EditorSettings,
49 #[offset(80)]
50 #[rename(name = "m_DurationMode")]
51 pub m_duration_mode: crate::unity_engine::timeline::timelineasset::TimelineAsset_DurationMode,
52 #[offset(88)]
53 #[rename(name = "m_MarkerTrack")]
54 pub m_marker_track: crate::unity_engine::timeline::markertrack::MarkerTrack,
55 }
56
57 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/timelineasset/TimelineAsset_DurationMode.md"))]
58 #[repr(C)]
59 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
60 pub struct TimelineAsset_DurationMode {
61 pub value: i32,
62 }
63 impl ::unity::ClassIdentity for TimelineAsset_DurationMode {
64 const NAME: &'static str = "TimelineAsset.DurationMode";
65 const NAMESPACE: &'static str = "UnityEngine.Timeline";
66
67 fn class() -> ::unity::Class {
68 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
69 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
70 }
71 }
72 impl ::unity::IlType for TimelineAsset_DurationMode {
73 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
74 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
75 }
76 }
77 impl TimelineAsset_DurationMode {
78 pub fn based_on_clips() -> Self {
79 Self { value: 0 }
80 }
81
82 pub fn fixed_length() -> Self {
83 Self { value: 1 }
84 }
85 }
86
87 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/timelineasset/TimelineAsset_EditorSettings.md"))]
88 #[::unity::class(namespace = "UnityEngine.Timeline", name = "TimelineAsset.EditorSettings")]
89 #[parent(crate::system::object::Object)]
90 pub struct TimelineAsset_EditorSettings {
91 #[static_field]
92 #[rename(name = "kMinFps")]
93 pub k_min_fps: f32,
94 #[static_field]
95 #[rename(name = "kMaxFps")]
96 pub k_max_fps: f32,
97 #[static_field]
98 #[rename(name = "kDefaultFps")]
99 pub k_default_fps: f32,
100 #[offset(16)]
101 #[rename(name = "m_Framerate")]
102 pub m_framerate: f32,
103 #[offset(20)]
104 #[rename(name = "m_ScenePreview")]
105 pub m_scene_preview: bool,
106 }
107}
108
109#[cfg(feature = "unity_engine-timeline-timelineasset-types")]
110pub use __types::*;
111
112#[cfg(feature = "unity_engine-timeline-timelineasset")]
113impl TimelineAsset {
114 #[doc = "`GetValidFramerate(f32)` overload"]
115 pub fn get_valid_framerate(framerate: impl ::core::convert::Into<f32>) -> f32 {
116 unsafe {
117 ::unity::il2cpp_call!((::unity::module_base()+0x35dd940usize)as*mut u8,f32;
118(f32)::core::convert::Into::into(framerate))
119 }
120 }
121
122 #[doc = "`AddSubTracksRecursive(crate::unity_engine::timeline::trackasset::TrackAsset, *mutcrate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::trackasset::TrackAsset>)` overload"]
123 pub fn add_sub_tracks_recursive(
124 track: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>,
125 ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::trackasset::TrackAsset> {
126 unsafe {
127 let mut __out_0 = ::core::mem::MaybeUninit::<
128 crate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::trackasset::TrackAsset>,
129 >::uninit();
130 ::unity::il2cpp_call!((::unity::module_base()+0x35ddc90usize)as*mut u8,();
131(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(track),(*mut crate::system::collections::generic::list_1::List_1<crate::unity_engine::timeline::trackasset::TrackAsset>)__out_0.as_mut_ptr());
132 __out_0.assume_init()
133 }
134 }
135}
136
137#[cfg(feature = "unity_engine-timeline-timelineasset")]
138pub trait ITimelineAssetMethods: ITimelineAsset {
139 #[doc = "`UpgradeToLatestVersion()` overload"]
140 fn upgrade_to_latest_version(self) -> () {
141 unsafe {
142 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x35dc320usize)as*mut u8,();
144(TimelineAsset)__receiver)
145 }
146 }
147 #[doc = "`get_editorSettings()` overload"]
148 fn get_editor_settings(self) -> crate::unity_engine::timeline::timelineasset::TimelineAsset_EditorSettings {
149 unsafe {
150 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x35dc330usize)as*mut u8,crate::unity_engine::timeline::timelineasset::TimelineAsset_EditorSettings;
152(TimelineAsset)__receiver)
153 }
154 }
155 #[doc = "`get_duration()` overload"]
156 fn get_duration(self) -> f64 {
157 unsafe {
158 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 {
160 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
161 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
162 panic!(
163 "unity: virtual slot {}
164 out of range (vtable len {}
165) on the runtime class behind {}
166 (method `{}
167`)",
168 7usize,
169 __vt.len(),
170 <TimelineAsset as ::unity::ClassIdentity>::NAME,
171 "get_duration",
172 )
173 });
174 let __inner: extern "C" fn(TimelineAsset, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__vi.method_ptr);
175 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
176 __inner(__receiver, __mi)
177 }
178 }
179 }
180 #[doc = "`get_fixedDuration()` overload"]
181 fn get_fixed_duration(self) -> f64 {
182 unsafe {
183 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x35dc9c0usize)as*mut u8,f64;
185(TimelineAsset)__receiver)
186 }
187 }
188 #[doc = "`set_fixedDuration(f64)` overload"]
189 fn set_fixed_duration(self, value: impl ::core::convert::Into<f64>) -> () {
190 unsafe {
191 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x35dcb60usize)as*mut u8,();
193(TimelineAsset)__receiver,(f64)::core::convert::Into::into(value))
194 }
195 }
196 #[doc = "`get_durationMode()` overload"]
197 fn get_duration_mode(self) -> crate::unity_engine::timeline::timelineasset::TimelineAsset_DurationMode {
198 unsafe {
199 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x35dcbf0usize)as*mut u8,crate::unity_engine::timeline::timelineasset::TimelineAsset_DurationMode;
201(TimelineAsset)__receiver)
202 }
203 }
204 #[doc = "`set_durationMode(crate::unity_engine::timeline::timelineasset::TimelineAsset_DurationMode)` overload"]
205 fn set_duration_mode(self, value: impl ::core::convert::Into<crate::unity_engine::timeline::timelineasset::TimelineAsset_DurationMode>) -> () {
206 unsafe {
207 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x35dcc00usize)as*mut u8,();
209(TimelineAsset)__receiver,(crate::unity_engine::timeline::timelineasset::TimelineAsset_DurationMode)::core::convert::Into::into(value))
210 }
211 }
212 #[doc = "`get_outputs()` overload"]
213 fn get_outputs(
214 self,
215 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::playables::playablebinding::PlayableBinding> {
216 unsafe {
217 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218 {
219 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
220 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
221 panic!(
222 "unity: virtual slot {}
223 out of range (vtable len {}
224) on the runtime class behind {}
225 (method `{}
226`)",
227 8usize,
228 __vt.len(),
229 <TimelineAsset as ::unity::ClassIdentity>::NAME,
230 "get_outputs",
231 )
232 });
233 let __inner: extern "C" fn(
234 TimelineAsset,
235 ::unity::OptionalMethod,
236 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<
237 crate::unity_engine::playables::playablebinding::PlayableBinding,
238 > = ::core::mem::transmute(__vi.method_ptr);
239 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
240 __inner(__receiver, __mi)
241 }
242 }
243 }
244 #[doc = "`get_clipCaps()` overload"]
245 fn get_clip_caps(self) -> crate::unity_engine::timeline::clipcaps::ClipCaps {
246 unsafe {
247 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248 {
249 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
250 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
251 panic!(
252 "unity: virtual slot {}
253 out of range (vtable len {}
254) on the runtime class behind {}
255 (method `{}
256`)",
257 11usize,
258 __vt.len(),
259 <TimelineAsset as ::unity::ClassIdentity>::NAME,
260 "get_clipCaps",
261 )
262 });
263 let __inner: extern "C" fn(TimelineAsset, ::unity::OptionalMethod) -> crate::unity_engine::timeline::clipcaps::ClipCaps =
264 ::core::mem::transmute(__vi.method_ptr);
265 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
266 __inner(__receiver, __mi)
267 }
268 }
269 }
270 #[doc = "`get_outputTrackCount()` overload"]
271 fn get_output_track_count(self) -> i32 {
272 unsafe {
273 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274 ::unity::il2cpp_call!((::unity::module_base()+0x35dd100usize)as*mut u8,i32;
275(TimelineAsset)__receiver)
276 }
277 }
278 #[doc = "`get_rootTrackCount()` overload"]
279 fn get_root_track_count(self) -> i32 {
280 unsafe {
281 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282 ::unity::il2cpp_call!((::unity::module_base()+0x35dd540usize)as*mut u8,i32;
283(TimelineAsset)__receiver)
284 }
285 }
286 #[doc = "`OnValidate()` overload"]
287 fn on_validate(self) -> () {
288 unsafe {
289 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290 ::unity::il2cpp_call!((::unity::module_base()+0x35dd860usize)as*mut u8,();
291(TimelineAsset)__receiver)
292 }
293 }
294 #[doc = "`GetRootTrack(i32)` overload"]
295 fn get_root_track(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::timeline::trackasset::TrackAsset {
296 unsafe {
297 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298 ::unity::il2cpp_call!((::unity::module_base()+0x35dda50usize)as*mut u8,crate::unity_engine::timeline::trackasset::TrackAsset;
299(TimelineAsset)__receiver,(i32)::core::convert::Into::into(index))
300 }
301 }
302 #[doc = "`GetRootTracks()` overload"]
303 fn get_root_tracks(
304 self,
305 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::timeline::trackasset::TrackAsset> {
306 unsafe {
307 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 ::unity::il2cpp_call!((::unity::module_base()+0x35dcfd0usize)as*mut u8,crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::timeline::trackasset::TrackAsset> ;
309(TimelineAsset)__receiver)
310 }
311 }
312 #[doc = "`GetOutputTrack(i32)` overload"]
313 fn get_output_track(self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::timeline::trackasset::TrackAsset {
314 unsafe {
315 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 ::unity::il2cpp_call!((::unity::module_base()+0x35ddad0usize)as*mut u8,crate::unity_engine::timeline::trackasset::TrackAsset;
317(TimelineAsset)__receiver,(i32)::core::convert::Into::into(index))
318 }
319 }
320 #[doc = "`GetOutputTracks()` overload"]
321 fn get_output_tracks(
322 self,
323 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::timeline::trackasset::TrackAsset> {
324 unsafe {
325 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
326 ::unity::il2cpp_call!((::unity::module_base()+0x35ddb20usize)as*mut u8,crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::timeline::trackasset::TrackAsset> ;
327(TimelineAsset)__receiver)
328 }
329 }
330 #[doc = "`UpdateRootTrackCache()` overload"]
331 fn update_root_track_cache(self) -> () {
332 unsafe {
333 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
334 ::unity::il2cpp_call!((::unity::module_base()+0x35dd590usize)as*mut u8,();
335(TimelineAsset)__receiver)
336 }
337 }
338 #[doc = "`UpdateOutputTrackCache()` overload"]
339 fn update_output_track_cache(self) -> () {
340 unsafe {
341 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342 ::unity::il2cpp_call!((::unity::module_base()+0x35dd130usize)as*mut u8,();
343(TimelineAsset)__receiver)
344 }
345 }
346 #[doc = "`get_flattenedTracks()` overload"]
347 fn get_flattened_tracks(
348 self,
349 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::timeline::trackasset::TrackAsset> {
350 unsafe {
351 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
352 ::unity::il2cpp_call!((::unity::module_base()+0x35ddb50usize)as*mut u8,crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::timeline::trackasset::TrackAsset> ;
353(TimelineAsset)__receiver)
354 }
355 }
356 #[doc = "`get_markerTrack()` overload"]
357 fn get_marker_track(self) -> crate::unity_engine::timeline::markertrack::MarkerTrack {
358 unsafe {
359 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360 ::unity::il2cpp_call!((::unity::module_base()+0x35ddf90usize)as*mut u8,crate::unity_engine::timeline::markertrack::MarkerTrack;
361(TimelineAsset)__receiver)
362 }
363 }
364 #[doc = "`get_trackObjects()` overload"]
365 fn get_track_objects(self) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject> {
366 unsafe {
367 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 ::unity::il2cpp_call!((::unity::module_base()+0x35ddfa0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject> ;
369(TimelineAsset)__receiver)
370 }
371 }
372 #[doc = "`AddTrackInternal(crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
373 fn add_track_internal(self, track: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>) -> () {
374 unsafe {
375 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
376 ::unity::il2cpp_call!((::unity::module_base()+0x35ddfb0usize)as*mut u8,();
377(TimelineAsset)__receiver,(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(track))
378 }
379 }
380 #[doc = "`RemoveTrack(crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
381 fn remove_track(self, track: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>) -> () {
382 unsafe {
383 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
384 ::unity::il2cpp_call!((::unity::module_base()+0x35de0a0usize)as*mut u8,();
385(TimelineAsset)__receiver,(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(track))
386 }
387 }
388 #[doc = "`CreatePlayable(crate::unity_engine::playables::playablegraph::PlayableGraph, crate::unity_engine::gameobject::GameObject)` overload"]
389 fn create_playable(
390 self,
391 graph: impl ::core::convert::Into<crate::unity_engine::playables::playablegraph::PlayableGraph>,
392 go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
393 ) -> crate::unity_engine::playables::playable::Playable {
394 unsafe {
395 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
396 {
397 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
398 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
399 panic!(
400 "unity: virtual slot {}
401 out of range (vtable len {}
402) on the runtime class behind {}
403 (method `{}
404`)",
405 6usize,
406 __vt.len(),
407 <TimelineAsset as ::unity::ClassIdentity>::NAME,
408 "CreatePlayable",
409 )
410 });
411 let __inner: extern "C" fn(
412 TimelineAsset,
413 crate::unity_engine::playables::playablegraph::PlayableGraph,
414 crate::unity_engine::gameobject::GameObject,
415 ::unity::OptionalMethod,
416 ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__vi.method_ptr);
417 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
418 __inner(__receiver, ::core::convert::Into::into(graph), ::core::convert::Into::into(go), __mi)
419 }
420 }
421 }
422 #[doc = "`UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize()` overload"]
423 fn unity_engine_i_serialization_callback_receiver_on_before_serialize(self) -> () {
424 unsafe {
425 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
426 {
427 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
428 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
429 panic!(
430 "unity: virtual slot {}
431 out of range (vtable len {}
432) on the runtime class behind {}
433 (method `{}
434`)",
435 9usize,
436 __vt.len(),
437 <TimelineAsset as ::unity::ClassIdentity>::NAME,
438 "UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize",
439 )
440 });
441 let __inner: extern "C" fn(TimelineAsset, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
442 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
443 __inner(__receiver, __mi)
444 }
445 }
446 }
447 #[doc = "`UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize()` overload"]
448 fn unity_engine_i_serialization_callback_receiver_on_after_deserialize(self) -> () {
449 unsafe {
450 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
451 {
452 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
453 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
454 panic!(
455 "unity: virtual slot {}
456 out of range (vtable len {}
457) on the runtime class behind {}
458 (method `{}
459`)",
460 10usize,
461 __vt.len(),
462 <TimelineAsset as ::unity::ClassIdentity>::NAME,
463 "UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize",
464 )
465 });
466 let __inner: extern "C" fn(TimelineAsset, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
467 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
468 __inner(__receiver, __mi)
469 }
470 }
471 }
472 #[doc = "`__internalAwake()` overload"]
473 fn internal_awake(self) -> () {
474 unsafe {
475 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
476 ::unity::il2cpp_call!((::unity::module_base()+0x35de710usize)as*mut u8,();
477(TimelineAsset)__receiver)
478 }
479 }
480 #[doc = "`GatherProperties(crate::unity_engine::playables::playabledirector::PlayableDirector, crate::unity_engine::timeline::ipropertycollector::IPropertyCollector)` overload"]
481 fn gather_properties(
482 self,
483 director: impl ::core::convert::Into<crate::unity_engine::playables::playabledirector::PlayableDirector>,
484 driver: impl ::core::convert::Into<crate::unity_engine::timeline::ipropertycollector::IPropertyCollector>,
485 ) -> () {
486 unsafe {
487 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
488 {
489 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
490 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
491 panic!(
492 "unity: virtual slot {}
493 out of range (vtable len {}
494) on the runtime class behind {}
495 (method `{}
496`)",
497 12usize,
498 __vt.len(),
499 <TimelineAsset as ::unity::ClassIdentity>::NAME,
500 "GatherProperties",
501 )
502 });
503 let __inner: extern "C" fn(
504 TimelineAsset,
505 crate::unity_engine::playables::playabledirector::PlayableDirector,
506 crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
507 ::unity::OptionalMethod,
508 ) -> () = ::core::mem::transmute(__vi.method_ptr);
509 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
510 __inner(
511 __receiver,
512 ::core::convert::Into::into(director),
513 ::core::convert::Into::into(driver),
514 __mi,
515 )
516 }
517 }
518 }
519 #[doc = "`CreateMarkerTrack()` overload"]
520 fn create_marker_track(self) -> () {
521 unsafe {
522 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
523 ::unity::il2cpp_call!((::unity::module_base()+0x35ded70usize)as*mut u8,();
524(TimelineAsset)__receiver)
525 }
526 }
527 #[doc = "`Invalidate()` overload"]
528 fn invalidate(self) -> () {
529 unsafe {
530 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
531 ::unity::il2cpp_call!((::unity::module_base()+0x35de050usize)as*mut u8,();
532(TimelineAsset)__receiver)
533 }
534 }
535 #[doc = "`UpdateFixedDurationWithItemsDuration()` overload"]
536 fn update_fixed_duration_with_items_duration(self) -> () {
537 unsafe {
538 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
539 ::unity::il2cpp_call!((::unity::module_base()+0x35deea0usize)as*mut u8,();
540(TimelineAsset)__receiver)
541 }
542 }
543 #[doc = "`CalculateItemsDuration()` overload"]
544 fn calculate_items_duration(self) -> crate::unity_engine::timeline::discretetime::DiscreteTime {
545 unsafe {
546 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
547 ::unity::il2cpp_call!((::unity::module_base()+0x35dc4d0usize)as*mut u8,crate::unity_engine::timeline::discretetime::DiscreteTime;
548(TimelineAsset)__receiver)
549 }
550 }
551 #[doc = "`CreateTrack(::unity::SystemType, crate::unity_engine::timeline::trackasset::TrackAsset, ::unity::Il2CppString)` overload"]
552 fn create_track(
553 self,
554 r#type: impl ::core::convert::Into<::unity::SystemType>,
555 parent: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>,
556 name: impl ::core::convert::Into<::unity::Il2CppString>,
557 ) -> crate::unity_engine::timeline::trackasset::TrackAsset {
558 unsafe {
559 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
560 ::unity::il2cpp_call!((::unity::module_base()+0x35df060usize)as*mut u8,crate::unity_engine::timeline::trackasset::TrackAsset;
561(TimelineAsset)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(parent),(::unity::Il2CppString)::core::convert::Into::into(name))
562 }
563 }
564 fn create_track_2<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
565 self,
566 parent: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>,
567 track_name: impl ::core::convert::Into<::unity::Il2CppString>,
568 ) -> M0 {
569 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
570 ::unity::lookup::method_info_on_class(<TimelineAsset as ::unity::ClassIdentity>::class(), "CreateTrack", 2)
571 });
572 #[allow(clippy::type_complexity)]
573 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
574 ::std::sync::OnceLock::new();
575 let _ = false;
576 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
577 ::core::result::Result::Ok(mi) => *mi,
578 ::core::result::Result::Err(e) => {
579 panic!(
580 "method lookup failed: {}
581::{}
582: {}
583",
584 <TimelineAsset as ::unity::ClassIdentity>::NAME,
585 "CreateTrack",
586 e
587 )
588 },
589 };
590 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
591 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
592 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
593 let mut __guard = __cache.lock().unwrap();
594 *__guard
595 .entry(__key)
596 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
597 };
598 unsafe {
599 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
600 let __f: extern "C" fn(
601 TimelineAsset,
602 crate::unity_engine::timeline::trackasset::TrackAsset,
603 ::unity::Il2CppString,
604 ::unity::OptionalMethod,
605 ) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
606 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
607 __f(
608 __receiver,
609 ::core::convert::Into::into(parent),
610 ::core::convert::Into::into(track_name),
611 ::core::option::Option::Some(__mi_opaque),
612 )
613 }
614 }
615 fn create_track_3<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
616 self,
617 track_name: impl ::core::convert::Into<::unity::Il2CppString>,
618 ) -> M0 {
619 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
620 ::unity::lookup::method_info_on_class(<TimelineAsset as ::unity::ClassIdentity>::class(), "CreateTrack", 1)
621 });
622 #[allow(clippy::type_complexity)]
623 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
624 ::std::sync::OnceLock::new();
625 let _ = false;
626 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
627 ::core::result::Result::Ok(mi) => *mi,
628 ::core::result::Result::Err(e) => {
629 panic!(
630 "method lookup failed: {}
631::{}
632: {}
633",
634 <TimelineAsset as ::unity::ClassIdentity>::NAME,
635 "CreateTrack",
636 e
637 )
638 },
639 };
640 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
641 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
642 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
643 let mut __guard = __cache.lock().unwrap();
644 *__guard
645 .entry(__key)
646 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
647 };
648 unsafe {
649 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
650 let __f: extern "C" fn(TimelineAsset, ::unity::Il2CppString, ::unity::OptionalMethod) -> M0 =
651 ::core::mem::transmute(__inflated.method_ptr);
652 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
653 __f(
654 __receiver,
655 ::core::convert::Into::into(track_name),
656 ::core::option::Option::Some(__mi_opaque),
657 )
658 }
659 }
660 fn create_track_4<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> M0 {
661 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
662 ::unity::lookup::method_info_on_class(<TimelineAsset as ::unity::ClassIdentity>::class(), "CreateTrack", 0)
663 });
664 #[allow(clippy::type_complexity)]
665 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
666 ::std::sync::OnceLock::new();
667 let _ = false;
668 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
669 ::core::result::Result::Ok(mi) => *mi,
670 ::core::result::Result::Err(e) => {
671 panic!(
672 "method lookup failed: {}
673::{}
674: {}
675",
676 <TimelineAsset as ::unity::ClassIdentity>::NAME,
677 "CreateTrack",
678 e
679 )
680 },
681 };
682 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
683 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
684 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
685 let mut __guard = __cache.lock().unwrap();
686 *__guard
687 .entry(__key)
688 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
689 };
690 unsafe {
691 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
692 let __f: extern "C" fn(TimelineAsset, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
693 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
694 __f(__receiver, ::core::option::Option::Some(__mi_opaque))
695 }
696 }
697 #[doc = "`DeleteClip(crate::unity_engine::timeline::timelineclip::TimelineClip)` overload"]
698 fn delete_clip(self, clip: impl ::core::convert::Into<crate::unity_engine::timeline::timelineclip::TimelineClip>) -> bool {
699 unsafe {
700 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
701 ::unity::il2cpp_call!((::unity::module_base()+0x35dfd70usize)as*mut u8,bool;
702(TimelineAsset)__receiver,(crate::unity_engine::timeline::timelineclip::TimelineClip)::core::convert::Into::into(clip))
703 }
704 }
705 #[doc = "`DeleteTrack(crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
706 fn delete_track(self, track: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>) -> bool {
707 unsafe {
708 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
709 ::unity::il2cpp_call!((::unity::module_base()+0x35e0310usize)as*mut u8,bool;
710(TimelineAsset)__receiver,(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(track))
711 }
712 }
713 #[doc = "`MoveLastTrackBefore(crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
714 fn move_last_track_before(self, asset: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>) -> () {
715 unsafe {
716 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
717 ::unity::il2cpp_call!((::unity::module_base()+0x35e0a80usize)as*mut u8,();
718(TimelineAsset)__receiver,(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(asset))
719 }
720 }
721 #[doc = "`AllocateTrack(crate::unity_engine::timeline::trackasset::TrackAsset, ::unity::Il2CppString, ::unity::SystemType)` overload"]
722 fn allocate_track(
723 self,
724 track_asset_parent: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>,
725 track_name: impl ::core::convert::Into<::unity::Il2CppString>,
726 track_type: impl ::core::convert::Into<::unity::SystemType>,
727 ) -> crate::unity_engine::timeline::trackasset::TrackAsset {
728 unsafe {
729 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
730 ::unity::il2cpp_call!((::unity::module_base()+0x35dfab0usize)as*mut u8,crate::unity_engine::timeline::trackasset::TrackAsset;
731(TimelineAsset)__receiver,(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(track_asset_parent),(::unity::Il2CppString)::core::convert::Into::into(track_name),(::unity::SystemType)::core::convert::Into::into(track_type))
732 }
733 }
734 #[doc = "`DeleteRecordedAnimation(crate::unity_engine::timeline::trackasset::TrackAsset)` overload"]
735 fn delete_recorded_animation(self, track: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>) -> () {
736 unsafe {
737 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
738 ::unity::il2cpp_call!((::unity::module_base()+0x35e0850usize)as*mut u8,();
739(TimelineAsset)__receiver,(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(track))
740 }
741 }
742 #[doc = "`DeleteRecordedAnimation(crate::unity_engine::timeline::timelineclip::TimelineClip)` overload"]
743 fn delete_recorded_animation_2(self, clip: impl ::core::convert::Into<crate::unity_engine::timeline::timelineclip::TimelineClip>) -> () {
744 unsafe {
745 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
746 ::unity::il2cpp_call!((::unity::module_base()+0x35e0060usize)as*mut u8,();
747(TimelineAsset)__receiver,(crate::unity_engine::timeline::timelineclip::TimelineClip)::core::convert::Into::into(clip))
748 }
749 }
750 #[doc = "`.ctor()` overload"]
751 fn ctor(self) -> () {
752 unsafe {
753 let __receiver = <TimelineAsset as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
754 ::unity::il2cpp_call!((::unity::module_base()+0x35e0dc0usize)as*mut u8,();
755(TimelineAsset)__receiver)
756 }
757 }
758}
759
760#[cfg(feature = "unity_engine-timeline-timelineasset")]
761impl<__T: ITimelineAsset> ITimelineAssetMethods for __T {}
762
763#[cfg(feature = "unity_engine-timeline-timelineasset")]
764impl TimelineAsset {
765 pub fn upgrade_to_latest_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
766 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
767 }
768
769 pub fn get_editor_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
770 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
771 }
772
773 pub fn get_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
774 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
775 }
776
777 pub fn get_fixed_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
778 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
779 }
780
781 pub fn set_fixed_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
782 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
783 }
784
785 pub fn get_duration_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
786 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
787 }
788
789 pub fn set_duration_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
790 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
791 }
792
793 pub fn get_outputs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
794 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
795 }
796
797 pub fn get_clip_caps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
798 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
799 }
800
801 pub fn get_output_track_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
802 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
803 }
804
805 pub fn get_root_track_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
806 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
807 }
808
809 pub fn on_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
810 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
811 }
812
813 pub fn get_valid_framerate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
814 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
815 }
816
817 pub fn get_root_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
818 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
819 }
820
821 pub fn get_root_tracks_method_info() -> &'static ::unity::il2cpp::MethodInfo {
822 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
823 }
824
825 pub fn get_output_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
826 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
827 }
828
829 pub fn get_output_tracks_method_info() -> &'static ::unity::il2cpp::MethodInfo {
830 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
831 }
832
833 pub fn update_root_track_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
834 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
835 }
836
837 pub fn update_output_track_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
838 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
839 }
840
841 pub fn get_flattened_tracks_method_info() -> &'static ::unity::il2cpp::MethodInfo {
842 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
843 }
844
845 pub fn get_marker_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
846 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
847 }
848
849 pub fn get_track_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
850 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
851 }
852
853 pub fn add_track_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
854 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
855 }
856
857 pub fn remove_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
858 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
859 }
860
861 pub fn create_playable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
862 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
863 }
864
865 pub fn unity_engine_i_serialization_callback_receiver_on_before_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
866 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
867 }
868
869 pub fn unity_engine_i_serialization_callback_receiver_on_after_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
870 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
871 }
872
873 pub fn internal_awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
874 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
875 }
876
877 pub fn gather_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
878 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
879 }
880
881 pub fn create_marker_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
882 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
883 }
884
885 pub fn invalidate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
886 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
887 }
888
889 pub fn update_fixed_duration_with_items_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
890 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
891 }
892
893 pub fn calculate_items_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
894 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
895 }
896
897 pub fn add_sub_tracks_recursive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
898 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
899 }
900
901 pub fn create_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
902 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
903 }
904
905 pub fn delete_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
906 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
907 }
908
909 pub fn delete_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
910 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
911 }
912
913 pub fn move_last_track_before_method_info() -> &'static ::unity::il2cpp::MethodInfo {
914 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
915 }
916
917 pub fn allocate_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
918 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
919 }
920
921 pub fn delete_recorded_animation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
922 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
923 }
924
925 pub fn delete_recorded_animation_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
926 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
927 }
928
929 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
930 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
931 }
932}
933
934#[cfg(feature = "unity_engine-timeline-timelineasset")]
935impl TimelineAsset {
936 #[doc = "Direct (non-virtual) call to `TimelineAsset`'s own `get_duration`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
937 pub unsafe fn get_duration(this: impl ::core::convert::Into<::unity::IlInstance>) -> f64 {
938 let __mi = Self::get_duration_method_info();
939 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f64 = ::core::mem::transmute(__mi.method_ptr);
940 __inner(this.into(), ::core::option::Option::None)
941 }
942
943 #[doc = "Direct (non-virtual) call to `TimelineAsset`'s own `get_outputs`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
944 pub unsafe fn get_outputs(
945 this: impl ::core::convert::Into<::unity::IlInstance>,
946 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::unity_engine::playables::playablebinding::PlayableBinding> {
947 let __mi = Self::get_outputs_method_info();
948 let __inner: extern "C" fn(
949 ::unity::IlInstance,
950 ::unity::OptionalMethod,
951 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<
952 crate::unity_engine::playables::playablebinding::PlayableBinding,
953 > = ::core::mem::transmute(__mi.method_ptr);
954 __inner(this.into(), ::core::option::Option::None)
955 }
956
957 #[doc = "Direct (non-virtual) call to `TimelineAsset`'s own `get_clipCaps`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
958 pub unsafe fn get_clip_caps(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::timeline::clipcaps::ClipCaps {
959 let __mi = Self::get_clip_caps_method_info();
960 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::timeline::clipcaps::ClipCaps =
961 ::core::mem::transmute(__mi.method_ptr);
962 __inner(this.into(), ::core::option::Option::None)
963 }
964
965 #[doc = "Direct (non-virtual) call to `TimelineAsset`'s own `CreatePlayable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
966 pub unsafe fn create_playable(
967 this: impl ::core::convert::Into<::unity::IlInstance>,
968 graph: crate::unity_engine::playables::playablegraph::PlayableGraph,
969 go: crate::unity_engine::gameobject::GameObject,
970 ) -> crate::unity_engine::playables::playable::Playable {
971 let __mi = Self::create_playable_method_info();
972 let __inner: extern "C" fn(
973 ::unity::IlInstance,
974 crate::unity_engine::playables::playablegraph::PlayableGraph,
975 crate::unity_engine::gameobject::GameObject,
976 ::unity::OptionalMethod,
977 ) -> crate::unity_engine::playables::playable::Playable = ::core::mem::transmute(__mi.method_ptr);
978 __inner(this.into(), graph, go, ::core::option::Option::None)
979 }
980
981 #[doc = "Direct (non-virtual) call to `TimelineAsset`'s own `UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
982 pub unsafe fn unity_engine_i_serialization_callback_receiver_on_before_serialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
983 let __mi = Self::unity_engine_i_serialization_callback_receiver_on_before_serialize_method_info();
984 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
985 __inner(this.into(), ::core::option::Option::None)
986 }
987
988 #[doc = "Direct (non-virtual) call to `TimelineAsset`'s own `UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
989 pub unsafe fn unity_engine_i_serialization_callback_receiver_on_after_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
990 let __mi = Self::unity_engine_i_serialization_callback_receiver_on_after_deserialize_method_info();
991 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
992 __inner(this.into(), ::core::option::Option::None)
993 }
994
995 #[doc = "Direct (non-virtual) call to `TimelineAsset`'s own `GatherProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
996 pub unsafe fn gather_properties(
997 this: impl ::core::convert::Into<::unity::IlInstance>,
998 director: crate::unity_engine::playables::playabledirector::PlayableDirector,
999 driver: crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
1000 ) -> () {
1001 let __mi = Self::gather_properties_method_info();
1002 let __inner: extern "C" fn(
1003 ::unity::IlInstance,
1004 crate::unity_engine::playables::playabledirector::PlayableDirector,
1005 crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
1006 ::unity::OptionalMethod,
1007 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1008 __inner(this.into(), director, driver, ::core::option::Option::None)
1009 }
1010}
1011
1012#[cfg(feature = "unity_engine-timeline-timelineasset")]
1013impl TimelineAsset {
1014 #[doc = "`.ctor()` — no args"]
1015 pub fn new() -> Self {
1016 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1017 panic!(
1018 "{}
1019::{}
1020 failed to instantiate",
1021 ::core::stringify!(TimelineAsset),
1022 ::core::stringify!(new),
1023 )
1024 });
1025 <Self as ITimelineAssetMethods>::ctor(this);
1026 this
1027 }
1028}
1029
1030#[cfg(feature = "unity_engine-timeline-timelineasset")]
1031impl TimelineAsset_EditorSettings {
1032 #[doc = "`.cctor()` overload"]
1033 pub fn cctor() -> () {
1034 unsafe {
1035 ::unity::il2cpp_call!((::unity::module_base()+0x35eb750usize)as*mut u8,();
1036 )
1037 }
1038 }
1039}
1040
1041#[cfg(feature = "unity_engine-timeline-timelineasset")]
1042pub trait ITimelineAsset_EditorSettingsMethods: ITimelineAsset_EditorSettings {
1043 #[doc = "`get_fps()` overload"]
1044 fn get_fps(self) -> f32 {
1045 unsafe {
1046 let __receiver =
1047 <TimelineAsset_EditorSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1048 ::unity::il2cpp_call!((::unity::module_base()+0x35eb740usize)as*mut u8,f32;
1049(TimelineAsset_EditorSettings)__receiver)
1050 }
1051 }
1052 #[doc = "`set_fps(f32)` overload"]
1053 fn set_fps(self, value: impl ::core::convert::Into<f32>) -> () {
1054 unsafe {
1055 let __receiver =
1056 <TimelineAsset_EditorSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1057 ::unity::il2cpp_call!((::unity::module_base()+0x35dd9c0usize)as*mut u8,();
1058(TimelineAsset_EditorSettings)__receiver,(f32)::core::convert::Into::into(value))
1059 }
1060 }
1061 #[doc = "`.ctor()` overload"]
1062 fn ctor(self) -> () {
1063 unsafe {
1064 let __receiver =
1065 <TimelineAsset_EditorSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1066 ::unity::il2cpp_call!((::unity::module_base()+0x35e0e90usize)as*mut u8,();
1067(TimelineAsset_EditorSettings)__receiver)
1068 }
1069 }
1070}
1071
1072#[cfg(feature = "unity_engine-timeline-timelineasset")]
1073impl<__T: ITimelineAsset_EditorSettings> ITimelineAsset_EditorSettingsMethods for __T {}
1074
1075#[cfg(feature = "unity_engine-timeline-timelineasset")]
1076impl TimelineAsset_EditorSettings {
1077 pub fn get_fps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1078 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1079 }
1080
1081 pub fn set_fps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1082 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1083 }
1084
1085 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1086 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1087 }
1088
1089 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1090 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1091 }
1092}
1093
1094#[cfg(feature = "unity_engine-timeline-timelineasset")]
1095impl TimelineAsset_EditorSettings {
1096 #[doc = "`.ctor()` — no args"]
1097 pub fn new() -> Self {
1098 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1099 panic!(
1100 "{}
1101::{}
1102 failed to instantiate",
1103 ::core::stringify!(TimelineAsset_EditorSettings),
1104 ::core::stringify!(new),
1105 )
1106 });
1107 <Self as ITimelineAsset_EditorSettingsMethods>::ctor(this);
1108 this
1109 }
1110}
1111
1112#[cfg(feature = "unity_engine-timeline-timelineasset")]
1113#[doc(hidden)]
1114pub mod prelude {
1115 pub use super::{
1116 ITimelineAsset, ITimelineAssetMethods, ITimelineAsset_EditorSettings, ITimelineAsset_EditorSettingsMethods, TimelineAsset,
1117 TimelineAsset_DurationMode, TimelineAsset_EditorSettings,
1118 };
1119 #[cfg(feature = "system-object")]
1120 pub use crate::system::object::IObjectMethods;
1121 #[cfg(feature = "system-enum")]
1122 pub use crate::system::r#enum::IEnumMethods;
1123 #[cfg(feature = "system-valuetype")]
1124 pub use crate::system::valuetype::IValueTypeMethods;
1125 #[cfg(feature = "unity_engine-object_2")]
1126 pub use crate::unity_engine::object_2::IObject_2Methods;
1127 #[cfg(feature = "unity_engine-playables-playableasset")]
1128 pub use crate::unity_engine::playables::playableasset::IPlayableAssetMethods;
1129 #[cfg(feature = "unity_engine-scriptableobject")]
1130 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
1131 pub use crate::{
1132 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
1133 unity_engine::{object_2::IObject_2, playables::playableasset::IPlayableAsset, scriptableobject::IScriptableObject},
1134 };
1135}