pub trait IUnityAssetsScriptLoaderMethods: IUnityAssetsScriptLoader {
// Provided methods
fn ctor(self, assets_path: impl Into<Il2CppString>) { ... }
fn ctor_2(
self,
script_to_code_map: impl Into<Dictionary_2<Il2CppString, Il2CppString>>,
) { ... }
fn load_resources_with_reflection(
self,
assets_path: impl Into<Il2CppString>,
) { ... }
fn get_file_name(self, filename: impl Into<Il2CppString>) -> Il2CppString { ... }
fn load_file(
self,
file: impl Into<Il2CppString>,
global_context: impl Into<Table>,
) -> Object { ... }
fn script_file_exists(self, file: impl Into<Il2CppString>) -> bool { ... }
fn get_loaded_scripts(self) -> Array<Il2CppString> { ... }
}Provided Methods§
Sourcefn ctor(self, assets_path: impl Into<Il2CppString>)
fn ctor(self, assets_path: impl Into<Il2CppString>)
.ctor(::unity::Il2CppString) overload
Sourcefn ctor_2(
self,
script_to_code_map: impl Into<Dictionary_2<Il2CppString, Il2CppString>>,
)
fn ctor_2( self, script_to_code_map: impl Into<Dictionary_2<Il2CppString, Il2CppString>>, )
.ctor(crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString,::unity::Il2CppString>) overload
Sourcefn load_resources_with_reflection(self, assets_path: impl Into<Il2CppString>)
fn load_resources_with_reflection(self, assets_path: impl Into<Il2CppString>)
LoadResourcesWithReflection(::unity::Il2CppString) overload
Sourcefn get_file_name(self, filename: impl Into<Il2CppString>) -> Il2CppString
fn get_file_name(self, filename: impl Into<Il2CppString>) -> Il2CppString
GetFileName(::unity::Il2CppString) overload
Sourcefn load_file(
self,
file: impl Into<Il2CppString>,
global_context: impl Into<Table>,
) -> Object
fn load_file( self, file: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> Object
LoadFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table) overload
Sourcefn script_file_exists(self, file: impl Into<Il2CppString>) -> bool
fn script_file_exists(self, file: impl Into<Il2CppString>) -> bool
ScriptFileExists(::unity::Il2CppString) overload
Sourcefn get_loaded_scripts(self) -> Array<Il2CppString>
fn get_loaded_scripts(self) -> Array<Il2CppString>
GetLoadedScripts() overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IUnityAssetsScriptLoader> IUnityAssetsScriptLoaderMethods for __T
Available on crate feature
moon_sharp-interpreter-loaders-unityassetsscriptloader only.