engage/generated/unity_engine/networking/
unitywebrequestassetbundle.rs1#[cfg(feature = "unity_engine-networking-unitywebrequestassetbundle-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/networking/unitywebrequestassetbundle/UnityWebRequestAssetBundle.md"))]
11 #[::unity::class(namespace = "UnityEngine.Networking", name = "UnityWebRequestAssetBundle")]
12 #[parent(crate::system::object::Object)]
13 pub struct UnityWebRequestAssetBundle {}
14}
15
16#[cfg(feature = "unity_engine-networking-unitywebrequestassetbundle-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-networking-unitywebrequestassetbundle")]
20impl UnityWebRequestAssetBundle {
21 #[doc = "`GetAssetBundle(::unity::Il2CppString)` overload"]
22 pub fn get_asset_bundle(
23 uri: impl ::core::convert::Into<::unity::Il2CppString>,
24 ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest {
25 unsafe {
26 ::unity::il2cpp_call!((::unity::module_base()+0x3f457f0usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest;
27(::unity::Il2CppString)::core::convert::Into::into(uri))
28 }
29 }
30
31 #[doc = "`GetAssetBundle(::unity::Il2CppString, u32)` overload"]
32 pub fn get_asset_bundle_2(
33 uri: impl ::core::convert::Into<::unity::Il2CppString>,
34 crc: impl ::core::convert::Into<u32>,
35 ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest {
36 unsafe {
37 ::unity::il2cpp_call!((::unity::module_base()+0x3f45800usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest;
38(::unity::Il2CppString)::core::convert::Into::into(uri),(u32)::core::convert::Into::into(crc))
39 }
40 }
41
42 #[doc = "`GetAssetBundle(::unity::Il2CppString, crate::unity_engine::cachedassetbundle::CachedAssetBundle, u32)` overload"]
43 pub fn get_asset_bundle_3(
44 uri: impl ::core::convert::Into<::unity::Il2CppString>,
45 cached_asset_bundle: impl ::core::convert::Into<crate::unity_engine::cachedassetbundle::CachedAssetBundle>,
46 crc: impl ::core::convert::Into<u32>,
47 ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest {
48 unsafe {
49 ::unity::il2cpp_call!((::unity::module_base()+0x3f458f0usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest;
50(::unity::Il2CppString)::core::convert::Into::into(uri),(crate::unity_engine::cachedassetbundle::CachedAssetBundle)::core::convert::Into::into(cached_asset_bundle),(u32)::core::convert::Into::into(crc))
51 }
52 }
53}
54
55#[cfg(feature = "unity_engine-networking-unitywebrequestassetbundle")]
56impl UnityWebRequestAssetBundle {
57 pub fn get_asset_bundle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
58 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
59 }
60
61 pub fn get_asset_bundle_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
63 }
64
65 pub fn get_asset_bundle_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
67 }
68}
69
70#[cfg(feature = "unity_engine-networking-unitywebrequestassetbundle")]
71#[doc(hidden)]
72pub mod prelude {
73 pub use super::{IUnityWebRequestAssetBundle, UnityWebRequestAssetBundle};
74 pub use crate::system::object::IObject;
75 #[cfg(feature = "system-object")]
76 pub use crate::system::object::IObjectMethods;
77}