Skip to main content

IAssetBundleResourceMethods

Trait IAssetBundleResourceMethods 

Source
pub trait IAssetBundleResourceMethods: IAssetBundleResource {
Show 14 methods // Provided methods fn create_web_request( self, loc: impl Into<IResourceLocation>, ) -> UnityWebRequest { ... } fn create_web_request_2( self, url: impl Into<Il2CppString>, ) -> UnityWebRequest { ... } fn percent_complete(self) -> f32 { ... } fn get_download_status(self) -> DownloadStatus { ... } fn get_asset_bundle(self) -> AssetBundle { ... } fn start(self, provide_handle: impl Into<ProvideHandle>) { ... } fn wait_for_completion_handler(self) -> bool { ... } fn add_callback_invoke_if_done( self, operation: impl Into<AsyncOperation>, callback: impl Into<Action_1<AsyncOperation>>, ) { ... } fn begin_operation(self) { ... } fn local_request_operation_completed(self, op: impl Into<AsyncOperation>) { ... } fn complete_bundle_load(self, bundle: impl Into<AssetBundle>) { ... } fn web_request_operation_completed(self, op: impl Into<AsyncOperation>) { ... } fn unload(self) { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn create_web_request( self, loc: impl Into<IResourceLocation>, ) -> UnityWebRequest

CreateWebRequest(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation) overload

Source

fn create_web_request_2(self, url: impl Into<Il2CppString>) -> UnityWebRequest

CreateWebRequest(::unity::Il2CppString) overload

Source

fn percent_complete(self) -> f32

PercentComplete() overload

Source

fn get_download_status(self) -> DownloadStatus

GetDownloadStatus() overload

Source

fn get_asset_bundle(self) -> AssetBundle

GetAssetBundle() overload

Source

fn start(self, provide_handle: impl Into<ProvideHandle>)

Start(crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle) overload

Source

fn wait_for_completion_handler(self) -> bool

WaitForCompletionHandler() overload

Source

fn add_callback_invoke_if_done( self, operation: impl Into<AsyncOperation>, callback: impl Into<Action_1<AsyncOperation>>, )

AddCallbackInvokeIfDone(crate::unity_engine::asyncoperation::AsyncOperation, crate::system::action_1::Action_1<crate::unity_engine::asyncoperation::AsyncOperation>) overload

Source

fn begin_operation(self)

BeginOperation() overload

Source

fn local_request_operation_completed(self, op: impl Into<AsyncOperation>)

LocalRequestOperationCompleted(crate::unity_engine::asyncoperation::AsyncOperation) overload

Source

fn complete_bundle_load(self, bundle: impl Into<AssetBundle>)

CompleteBundleLoad(crate::unity_engine::assetbundle::AssetBundle) overload

Source

fn web_request_operation_completed(self, op: impl Into<AsyncOperation>)

WebRequestOperationCompleted(crate::unity_engine::asyncoperation::AsyncOperation) overload

Source

fn unload(self)

Unload() overload

Source

fn ctor(self)

.ctor() 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: IAssetBundleResource> IAssetBundleResourceMethods for __T

Available on crate feature unity_engine-resource_management-resource_providers-assetbundleresource only.