Skip to main content

IAssetBundleMethods

Trait IAssetBundleMethods 

Source
pub trait IAssetBundleMethods: IAssetBundle {
    // Provided methods
    fn ctor(self) { ... }
    fn load_asset(
        self,
        name: impl Into<Il2CppString>,
        type: impl Into<SystemType>,
    ) -> Object_2 { ... }
    fn load_asset_internal(
        self,
        name: impl Into<Il2CppString>,
        type: impl Into<SystemType>,
    ) -> Object_2 { ... }
    fn load_asset_async(
        self,
        name: impl Into<Il2CppString>,
        type: impl Into<SystemType>,
    ) -> AssetBundleRequest { ... }
    fn load_asset_with_sub_assets(
        self,
        name: impl Into<Il2CppString>,
        type: impl Into<SystemType>,
    ) -> Array<Object_2> { ... }
    fn load_asset_with_sub_assets_async(
        self,
        name: impl Into<Il2CppString>,
        type: impl Into<SystemType>,
    ) -> AssetBundleRequest { ... }
    fn load_all_assets_async<M0: IlType + Copy + ClassIdentity>(
        self,
    ) -> AssetBundleRequest { ... }
    fn load_all_assets_async_2(
        self,
        type: impl Into<SystemType>,
    ) -> AssetBundleRequest { ... }
    fn load_asset_async_internal(
        self,
        name: impl Into<Il2CppString>,
        type: impl Into<SystemType>,
    ) -> AssetBundleRequest { ... }
    fn unload(self, unload_all_loaded_objects: impl Into<bool>) { ... }
    fn load_asset_with_sub_assets_internal(
        self,
        name: impl Into<Il2CppString>,
        type: impl Into<SystemType>,
    ) -> Array<Object_2> { ... }
    fn load_asset_with_sub_assets_async_internal(
        self,
        name: impl Into<Il2CppString>,
        type: impl Into<SystemType>,
    ) -> AssetBundleRequest { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn load_asset( self, name: impl Into<Il2CppString>, type: impl Into<SystemType>, ) -> Object_2

LoadAsset(::unity::Il2CppString, ::unity::SystemType) overload

Source

fn load_asset_internal( self, name: impl Into<Il2CppString>, type: impl Into<SystemType>, ) -> Object_2

LoadAsset_Internal(::unity::Il2CppString, ::unity::SystemType) overload

Source

fn load_asset_async( self, name: impl Into<Il2CppString>, type: impl Into<SystemType>, ) -> AssetBundleRequest

LoadAssetAsync(::unity::Il2CppString, ::unity::SystemType) overload

Source

fn load_asset_with_sub_assets( self, name: impl Into<Il2CppString>, type: impl Into<SystemType>, ) -> Array<Object_2>

LoadAssetWithSubAssets(::unity::Il2CppString, ::unity::SystemType) overload

Source

fn load_asset_with_sub_assets_async( self, name: impl Into<Il2CppString>, type: impl Into<SystemType>, ) -> AssetBundleRequest

LoadAssetWithSubAssetsAsync(::unity::Il2CppString, ::unity::SystemType) overload

Source

fn load_all_assets_async<M0: IlType + Copy + ClassIdentity>( self, ) -> AssetBundleRequest

Source

fn load_all_assets_async_2( self, type: impl Into<SystemType>, ) -> AssetBundleRequest

LoadAllAssetsAsync(::unity::SystemType) overload

Source

fn load_asset_async_internal( self, name: impl Into<Il2CppString>, type: impl Into<SystemType>, ) -> AssetBundleRequest

LoadAssetAsync_Internal(::unity::Il2CppString, ::unity::SystemType) overload

Source

fn unload(self, unload_all_loaded_objects: impl Into<bool>)

Unload(bool) overload

Source

fn load_asset_with_sub_assets_internal( self, name: impl Into<Il2CppString>, type: impl Into<SystemType>, ) -> Array<Object_2>

LoadAssetWithSubAssets_Internal(::unity::Il2CppString, ::unity::SystemType) overload

Source

fn load_asset_with_sub_assets_async_internal( self, name: impl Into<Il2CppString>, type: impl Into<SystemType>, ) -> AssetBundleRequest

LoadAssetWithSubAssetsAsync_Internal(::unity::Il2CppString, ::unity::SystemType) 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: IAssetBundle> IAssetBundleMethods for __T

Available on crate feature unity_engine-assetbundle only.