Skip to main content

IUnityAssetsScriptLoaderMethods

Trait IUnityAssetsScriptLoaderMethods 

Source
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§

Source

fn ctor(self, assets_path: impl Into<Il2CppString>)

.ctor(::unity::Il2CppString) overload

Source

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

Source

fn load_resources_with_reflection(self, assets_path: impl Into<Il2CppString>)

LoadResourcesWithReflection(::unity::Il2CppString) overload

Source

fn get_file_name(self, filename: impl Into<Il2CppString>) -> Il2CppString

GetFileName(::unity::Il2CppString) overload

Source

fn load_file( self, file: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> Object

LoadFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table) overload

Source

fn script_file_exists(self, file: impl Into<Il2CppString>) -> bool

ScriptFileExists(::unity::Il2CppString) overload

Source

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§

Source§

impl<__T: IUnityAssetsScriptLoader> IUnityAssetsScriptLoaderMethods for __T

Available on crate feature moon_sharp-interpreter-loaders-unityassetsscriptloader only.