engage/generated/unity_engine/
resourcesapiinternal.rs1#[cfg(feature = "unity_engine-resourcesapiinternal-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/resourcesapiinternal/ResourcesAPIInternal.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "ResourcesAPIInternal")]
12 #[parent(crate::system::object::Object)]
13 pub struct ResourcesAPIInternal {}
14}
15
16#[cfg(feature = "unity_engine-resourcesapiinternal-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-resourcesapiinternal")]
20impl ResourcesAPIInternal {
21 #[doc = "`FindObjectsOfTypeAll(::unity::SystemType)` overload"]
22 pub fn find_objects_of_type_all(
23 r#type: impl ::core::convert::Into<::unity::SystemType>,
24 ) -> ::unity::Array<crate::unity_engine::object_2::Object_2> {
25 unsafe {
26 ::unity::il2cpp_call!((::unity::module_base()+0x2f894e0usize)as*mut u8, ::unity::Array<crate::unity_engine::object_2::Object_2> ;
27(::unity::SystemType)::core::convert::Into::into(r#type))
28 }
29 }
30
31 #[doc = "`FindShaderByName(::unity::Il2CppString)` overload"]
32 pub fn find_shader_by_name(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::shader::Shader {
33 unsafe {
34 ::unity::il2cpp_call!((::unity::module_base()+0x2f89580usize)as*mut u8,crate::unity_engine::shader::Shader;
35(::unity::Il2CppString)::core::convert::Into::into(name))
36 }
37 }
38
39 #[doc = "`Load(::unity::Il2CppString, ::unity::SystemType)` overload"]
40 pub fn load(
41 path: impl ::core::convert::Into<::unity::Il2CppString>,
42 system_type_instance: impl ::core::convert::Into<::unity::SystemType>,
43 ) -> crate::unity_engine::object_2::Object_2 {
44 unsafe {
45 ::unity::il2cpp_call!((::unity::module_base()+0x2f89620usize)as*mut u8,crate::unity_engine::object_2::Object_2;
46(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::SystemType)::core::convert::Into::into(system_type_instance))
47 }
48 }
49
50 #[doc = "`LoadAll(::unity::Il2CppString, ::unity::SystemType)` overload"]
51 pub fn load_all(
52 path: impl ::core::convert::Into<::unity::Il2CppString>,
53 system_type_instance: impl ::core::convert::Into<::unity::SystemType>,
54 ) -> ::unity::Array<crate::unity_engine::object_2::Object_2> {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x2f896c0usize)as*mut u8, ::unity::Array<crate::unity_engine::object_2::Object_2> ;
57(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::SystemType)::core::convert::Into::into(system_type_instance))
58 }
59 }
60
61 #[doc = "`LoadAsyncInternal(::unity::Il2CppString, ::unity::SystemType)` overload"]
62 pub fn load_async_internal(
63 path: impl ::core::convert::Into<::unity::Il2CppString>,
64 r#type: impl ::core::convert::Into<::unity::SystemType>,
65 ) -> crate::unity_engine::resourcerequest::ResourceRequest {
66 unsafe {
67 ::unity::il2cpp_call!((::unity::module_base()+0x2f89790usize)as*mut u8,crate::unity_engine::resourcerequest::ResourceRequest;
68(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::SystemType)::core::convert::Into::into(r#type))
69 }
70 }
71
72 #[doc = "`UnloadAsset(crate::unity_engine::object_2::Object_2)` overload"]
73 pub fn unload_asset(asset_to_unload: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>) -> () {
74 unsafe {
75 ::unity::il2cpp_call!((::unity::module_base()+0x2f89830usize)as*mut u8,();
76(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(asset_to_unload))
77 }
78 }
79}
80
81#[cfg(feature = "unity_engine-resourcesapiinternal")]
82impl ResourcesAPIInternal {
83 pub fn find_objects_of_type_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
85 }
86
87 pub fn find_shader_by_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
89 }
90
91 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
93 }
94
95 pub fn load_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
97 }
98
99 pub fn load_async_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
101 }
102
103 pub fn unload_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
105 }
106}
107
108#[cfg(feature = "unity_engine-resourcesapiinternal")]
109#[doc(hidden)]
110pub mod prelude {
111 pub use super::{IResourcesAPIInternal, ResourcesAPIInternal};
112 pub use crate::system::object::IObject;
113 #[cfg(feature = "system-object")]
114 pub use crate::system::object::IObjectMethods;
115}