pub trait IIResourceProviderMethods: IIResourceProvider {
// Provided methods
fn get_provider_id(self) -> Il2CppString { ... }
fn get_default_type(
self,
location: impl Into<IResourceLocation>,
) -> SystemType { ... }
fn can_provide(
self,
type: impl Into<SystemType>,
location: impl Into<IResourceLocation>,
) -> bool { ... }
fn provide(self, provide_handle: impl Into<ProvideHandle>) { ... }
fn release(
self,
location: impl Into<IResourceLocation>,
asset: impl Into<Object>,
) { ... }
fn get_behaviour_flags(self) -> ProviderBehaviourFlags { ... }
}Provided Methods§
Sourcefn get_provider_id(self) -> Il2CppString
fn get_provider_id(self) -> Il2CppString
get_ProviderId() overload
Sourcefn get_default_type(self, location: impl Into<IResourceLocation>) -> SystemType
fn get_default_type(self, location: impl Into<IResourceLocation>) -> SystemType
GetDefaultType(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation) overload
Sourcefn can_provide(
self,
type: impl Into<SystemType>,
location: impl Into<IResourceLocation>,
) -> bool
fn can_provide( self, type: impl Into<SystemType>, location: impl Into<IResourceLocation>, ) -> bool
CanProvide(::unity::SystemType, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation) overload
Sourcefn provide(self, provide_handle: impl Into<ProvideHandle>)
fn provide(self, provide_handle: impl Into<ProvideHandle>)
Provide(crate::unity_engine::resource_management::resource_providers::providehandle::ProvideHandle) overload
Sourcefn release(
self,
location: impl Into<IResourceLocation>,
asset: impl Into<Object>,
)
fn release( self, location: impl Into<IResourceLocation>, asset: impl Into<Object>, )
Release(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation, crate::system::object::Object) overload
Sourcefn get_behaviour_flags(self) -> ProviderBehaviourFlags
fn get_behaviour_flags(self) -> ProviderBehaviourFlags
get_BehaviourFlags() 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: IIResourceProvider> IIResourceProviderMethods for __T
Available on crate feature
unity_engine-resource_management-resource_providers-iresourceprovider only.