Skip to main content

engage/generated/unity_engine/timeline/
timelinecreateutilities.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-timelinecreateutilities-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/timeline/timelinecreateutilities/TimelineCreateUtilities.md"))]
11    #[::unity::class(namespace = "UnityEngine.Timeline", name = "TimelineCreateUtilities")]
12    #[parent(crate::system::object::Object)]
13    pub struct TimelineCreateUtilities {}
14}
15
16#[cfg(feature = "unity_engine-timeline-timelinecreateutilities-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-timeline-timelinecreateutilities")]
20impl TimelineCreateUtilities {
21    #[doc = "`GenerateUniqueActorName(crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject>, ::unity::Il2CppString)` overload"]
22    pub fn generate_unique_actor_name(
23        tracks: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject>>,
24        name: impl ::core::convert::Into<::unity::Il2CppString>,
25    ) -> ::unity::Il2CppString {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x35df710usize)as*mut u8, ::unity::Il2CppString;
28(crate::system::collections::generic::list_1::List_1<crate::unity_engine::scriptableobject::ScriptableObject>)::core::convert::Into::into(tracks),(::unity::Il2CppString)::core::convert::Into::into(name))
29        }
30    }
31
32    #[doc = "`SaveAssetIntoObject(crate::unity_engine::object_2::Object_2, crate::unity_engine::object_2::Object_2)` overload"]
33    pub fn save_asset_into_object(
34        child_asset: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
35        master_asset: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
36    ) -> () {
37        unsafe {
38            ::unity::il2cpp_call!((::unity::module_base()+0x35d82e0usize)as*mut u8,();
39(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(child_asset),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(master_asset))
40        }
41    }
42
43    #[doc = "`CreateAnimationClipForTrack(::unity::Il2CppString, crate::unity_engine::timeline::trackasset::TrackAsset, bool)` overload"]
44    pub fn create_animation_clip_for_track(
45        name: impl ::core::convert::Into<::unity::Il2CppString>,
46        track: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>,
47        is_legacy: impl ::core::convert::Into<bool>,
48    ) -> crate::unity_engine::animationclip::AnimationClip {
49        unsafe {
50            ::unity::il2cpp_call!((::unity::module_base()+0x35d19c0usize)as*mut u8,crate::unity_engine::animationclip::AnimationClip;
51(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(track),(bool)::core::convert::Into::into(is_legacy))
52        }
53    }
54
55    #[doc = "`ValidateParentTrack(crate::unity_engine::timeline::trackasset::TrackAsset, ::unity::SystemType)` overload"]
56    pub fn validate_parent_track(
57        parent: impl ::core::convert::Into<crate::unity_engine::timeline::trackasset::TrackAsset>,
58        child_type: impl ::core::convert::Into<::unity::SystemType>,
59    ) -> bool {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x35df3d0usize)as*mut u8,bool;
62(crate::unity_engine::timeline::trackasset::TrackAsset)::core::convert::Into::into(parent),(::unity::SystemType)::core::convert::Into::into(child_type))
63        }
64    }
65}
66
67#[cfg(feature = "unity_engine-timeline-timelinecreateutilities")]
68impl TimelineCreateUtilities {
69    pub fn generate_unique_actor_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
71    }
72
73    pub fn save_asset_into_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
75    }
76
77    pub fn create_animation_clip_for_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
79    }
80
81    pub fn validate_parent_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
83    }
84}
85
86#[cfg(feature = "unity_engine-timeline-timelinecreateutilities")]
87#[doc(hidden)]
88pub mod prelude {
89    pub use super::{ITimelineCreateUtilities, TimelineCreateUtilities};
90    pub use crate::system::object::IObject;
91    #[cfg(feature = "system-object")]
92    pub use crate::system::object::IObjectMethods;
93}