Skip to main content

engage/generated/unity_engine/addressable_assets/
assetreferencet_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-addressable_assets-assetreferencet_1-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::addressable_assets::assetreference::{AssetReference, IAssetReference},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/addressable_assets/assetreferencet_1/AssetReferenceT_1.md"))]
14    #[::unity::class(namespace = "UnityEngine.AddressableAssets", name = "AssetReferenceT`1")]
15    #[parent(crate::unity_engine::addressable_assets::assetreference::AssetReference)]
16    #[parent(crate::system::object::Object)]
17    pub struct AssetReferenceT_1<T0: ::unity::ClassIdentity> {}
18}
19
20#[cfg(feature = "unity_engine-addressable_assets-assetreferencet_1-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-addressable_assets-assetreferencet_1")]
24#[::unity::methods]
25impl<T0: ::unity::ClassIdentity> AssetReferenceT_1<T0> {
26    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
27    #[method(name = ".ctor", args = 1)]
28    pub fn ctor(self, guid: ::unity::Il2CppString) -> ();
29
30    #[doc = "`LoadAsset()` overload"]
31    #[method(name = "LoadAsset", args = 0)]
32    pub fn load_asset(self) -> crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<T0>;
33
34    #[doc = "`LoadAssetAsync()` overload"]
35    #[method(name = "LoadAssetAsync", args = 0)]
36    pub fn load_asset_async(self) -> crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<T0>;
37
38    #[doc = "`ValidateAsset(crate::unity_engine::object_2::Object_2)` overload"]
39    #[method(name = "ValidateAsset", args = 1)]
40    pub fn validate_asset(self, obj: crate::unity_engine::object_2::Object_2) -> bool;
41
42    #[doc = "`ValidateAsset(::unity::Il2CppString)` overload"]
43    #[method(name = "ValidateAsset", args = 1)]
44    pub fn validate_asset_2(self, main_asset_path: ::unity::Il2CppString) -> bool;
45}
46
47#[cfg(feature = "unity_engine-addressable_assets-assetreferencet_1")]
48impl<T0: ::unity::ClassIdentity> AssetReferenceT_1<T0> {
49    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
50    pub fn new(guid: ::unity::Il2CppString) -> Self {
51        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
52            panic!(
53                "{}
54::{}
55 failed to instantiate",
56                ::core::stringify!(AssetReferenceT_1),
57                ::core::stringify!(new),
58            )
59        });
60        <Self as IAssetReferenceT_1Methods<T0>>::ctor(this, guid);
61        this
62    }
63}
64
65#[cfg(feature = "unity_engine-addressable_assets-assetreferencet_1")]
66#[doc(hidden)]
67pub mod prelude {
68    pub use super::{AssetReferenceT_1, IAssetReferenceT_1, IAssetReferenceT_1Methods};
69    #[cfg(feature = "system-object")]
70    pub use crate::system::object::IObjectMethods;
71    #[cfg(feature = "unity_engine-addressable_assets-assetreference")]
72    pub use crate::unity_engine::addressable_assets::assetreference::IAssetReferenceMethods;
73    pub use crate::{system::object::IObject, unity_engine::addressable_assets::assetreference::IAssetReference};
74}