Skip to main content

IResourceManagerMethods

Trait IResourceManagerMethods 

Source
pub trait IResourceManagerMethods: IResourceManager {
Show 61 methods // Provided methods fn get_internal_id_transform_func( self, ) -> Func_2<IResourceLocation, Il2CppString> { ... } fn set_internal_id_transform_func( self, value: impl Into<Func_2<IResourceLocation, Il2CppString>>, ) { ... } fn transform_internal_id( self, location: impl Into<IResourceLocation>, ) -> Il2CppString { ... } fn get_web_request_override(self) -> Action_1<UnityWebRequest> { ... } fn set_web_request_override( self, value: impl Into<Action_1<UnityWebRequest>>, ) { ... } fn get_operation_cache_count(self) -> i32 { ... } fn get_instance_operation_count(self) -> i32 { ... } fn add_update_receiver(self, receiver: impl Into<IUpdateReceiver>) { ... } fn remove_update_reciever(self, receiver: impl Into<IUpdateReceiver>) { ... } fn get_allocator(self) -> IAllocationStrategy { ... } fn set_allocator(self, value: impl Into<IAllocationStrategy>) { ... } fn get_resource_providers(self) -> IList_1_Interface<IResourceProvider> { ... } fn get_certificate_handler_instance(self) -> CertificateHandler { ... } fn set_certificate_handler_instance( self, value: impl Into<CertificateHandler>, ) { ... } fn ctor(self, alloc: impl Into<IAllocationStrategy>) { ... } fn on_object_added(self, obj: impl Into<Object>) { ... } fn on_object_removed(self, obj: impl Into<Object>) { ... } fn register_for_callbacks(self) { ... } fn clear_diagnostics_callback(self) { ... } fn clear_diagnostic_callbacks(self) { ... } fn unregister_diagnostic_callback( self, func: impl Into<Action_1<ResourceManager_DiagnosticEventContext>>, ) { ... } fn register_diagnostic_callback( self, func: impl Into<Action_4<AsyncOperationHandle, ResourceManager_DiagnosticEventType, i32, Object>>, ) { ... } fn register_diagnostic_callback_2( self, func: impl Into<Action_1<ResourceManager_DiagnosticEventContext>>, ) { ... } fn post_diagnostic_event( self, context: impl Into<ResourceManager_DiagnosticEventContext>, ) { ... } fn get_resource_provider( self, t: impl Into<SystemType>, location: impl Into<IResourceLocation>, ) -> IResourceProvider { ... } fn get_default_type_for_location( self, loc: impl Into<IResourceLocation>, ) -> SystemType { ... } fn calculate_locations_hash( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, t: impl Into<SystemType>, ) -> i32 { ... } fn provide_resource( self, location: impl Into<IResourceLocation>, desired_type: impl Into<SystemType>, release_dependencies_on_failure: impl Into<bool>, ) -> AsyncOperationHandle { ... } fn provide_resource_2<M0: IlType + Copy + ClassIdentity>( self, location: impl Into<IResourceLocation>, ) -> AsyncOperationHandle_1<M0> { ... } fn start_operation<M0: IlType + Copy + ClassIdentity>( self, operation: impl Into<AsyncOperationBase_1<M0>>, dependency: impl Into<AsyncOperationHandle>, ) -> AsyncOperationHandle_1<M0> { ... } fn start_operation_2( self, operation: impl Into<IAsyncOperation>, dependency: impl Into<AsyncOperationHandle>, ) -> AsyncOperationHandle { ... } fn on_instance_operation_destroy(self, o: impl Into<IAsyncOperation>) { ... } fn on_operation_destroy_non_cached(self, o: impl Into<IAsyncOperation>) { ... } fn on_operation_destroy_cached(self, o: impl Into<IAsyncOperation>) { ... } fn create_operation<M0: IlType + Copy + ClassIdentity>( self, actual_type: impl Into<SystemType>, type_hash: impl Into<i32>, cache_key: impl Into<IOperationCacheKey>, on_destroy_action: impl Into<Action_1<IAsyncOperation>>, ) -> M0 { ... } fn add_operation_to_cache( self, key: impl Into<IOperationCacheKey>, operation: impl Into<IAsyncOperation>, ) { ... } fn remove_operation_from_cache( self, key: impl Into<IOperationCacheKey>, ) -> bool { ... } fn is_operation_cached(self, key: impl Into<IOperationCacheKey>) -> bool { ... } fn cached_operation_count(self) -> i32 { ... } fn create_completed_operation<M0: IlType + Copy + ClassIdentity>( self, result: impl Into<M0>, error_msg: impl Into<Il2CppString>, ) -> AsyncOperationHandle_1<M0> { ... } fn release(self, handle: impl Into<AsyncOperationHandle>) { ... } fn acquire(self, handle: impl Into<AsyncOperationHandle>) { ... } fn acquire_group_op_from_cache( self, key: impl Into<IOperationCacheKey>, ) -> GroupOperation { ... } fn create_group_operation<M0: IlType + Copy + ClassIdentity>( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, ) -> AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>> { ... } fn create_group_operation_2<M0: IlType + Copy + ClassIdentity>( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, allow_failed_dependencies: impl Into<bool>, ) -> AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>> { ... } fn create_generic_group_operation( self, operations: impl Into<List_1<AsyncOperationHandle>>, released_cached_op_on_complete: impl Into<bool>, ) -> AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>> { ... } fn provide_resource_group_cached( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, group_hash: impl Into<i32>, desired_type: impl Into<SystemType>, callback: impl Into<Action_1<AsyncOperationHandle>>, release_dependencies_on_failure: impl Into<bool>, ) -> AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>> { ... } fn provide_resources<M0: IlType + Copy + ClassIdentity>( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, callback: impl Into<Action_1<M0>>, ) -> AsyncOperationHandle_1<IList_1_Interface<M0>> { ... } fn provide_resources_2<M0: IlType + Copy + ClassIdentity>( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, release_dependencies_on_failure: impl Into<bool>, callback: impl Into<Action_1<M0>>, ) -> AsyncOperationHandle_1<IList_1_Interface<M0>> { ... } fn create_chain_operation<M0: IlType + Copy + ClassIdentity, M1: IlType + Copy + ClassIdentity>( self, dependent_op: impl Into<AsyncOperationHandle_1<M1>>, callback: impl Into<Func_2<AsyncOperationHandle_1<M1>, AsyncOperationHandle_1<M0>>>, ) -> AsyncOperationHandle_1<M0> { ... } fn create_chain_operation_2<M0: IlType + Copy + ClassIdentity>( self, dependent_op: impl Into<AsyncOperationHandle>, callback: impl Into<Func_2<AsyncOperationHandle, AsyncOperationHandle_1<M0>>>, ) -> AsyncOperationHandle_1<M0> { ... } fn create_chain_operation_3<M0: IlType + Copy + ClassIdentity, M1: IlType + Copy + ClassIdentity>( self, dependent_op: impl Into<AsyncOperationHandle_1<M1>>, callback: impl Into<Func_2<AsyncOperationHandle_1<M1>, AsyncOperationHandle_1<M0>>>, release_dependencies_on_failure: impl Into<bool>, ) -> AsyncOperationHandle_1<M0> { ... } fn create_chain_operation_4<M0: IlType + Copy + ClassIdentity>( self, dependent_op: impl Into<AsyncOperationHandle>, callback: impl Into<Func_2<AsyncOperationHandle, AsyncOperationHandle_1<M0>>>, release_dependencies_on_failure: impl Into<bool>, ) -> AsyncOperationHandle_1<M0> { ... } fn provide_scene( self, scene_provider: impl Into<ISceneProvider_Interface>, location: impl Into<IResourceLocation>, load_mode: impl Into<LoadSceneMode>, activate_on_load: impl Into<bool>, priority: impl Into<i32>, ) -> AsyncOperationHandle_1<SceneInstance> { ... } fn release_scene( self, scene_provider: impl Into<ISceneProvider_Interface>, scene_load_handle: impl Into<AsyncOperationHandle_1<SceneInstance>>, ) -> AsyncOperationHandle_1<SceneInstance> { ... } fn provide_instance( self, provider: impl Into<IInstanceProvider_Interface>, location: impl Into<IResourceLocation>, instantiate_parameters: impl Into<InstantiationParameters>, ) -> AsyncOperationHandle_1<GameObject> { ... } fn cleanup_scene_instances(self, scene: impl Into<Scene>) { ... } fn execute_deferred_callbacks(self) { ... } fn register_for_deferred_callback( self, op: impl Into<IAsyncOperation>, increment_ref_count: impl Into<bool>, ) { ... } fn update(self, unscaled_delta_time: impl Into<f32>) { ... } fn dispose(self) { ... }
}

Provided Methods§

Source

fn get_internal_id_transform_func( self, ) -> Func_2<IResourceLocation, Il2CppString>

get_InternalIdTransformFunc() overload

Source

fn set_internal_id_transform_func( self, value: impl Into<Func_2<IResourceLocation, Il2CppString>>, )

set_InternalIdTransformFunc(crate::system::func_2::Func_2<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation,::unity::Il2CppString>) overload

Source

fn transform_internal_id( self, location: impl Into<IResourceLocation>, ) -> Il2CppString

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

Source

fn get_web_request_override(self) -> Action_1<UnityWebRequest>

get_WebRequestOverride() overload

Source

fn set_web_request_override(self, value: impl Into<Action_1<UnityWebRequest>>)

set_WebRequestOverride(crate::system::action_1::Action_1<crate::unity_engine::networking::unitywebrequest::UnityWebRequest>) overload

Source

fn get_operation_cache_count(self) -> i32

get_OperationCacheCount() overload

Source

fn get_instance_operation_count(self) -> i32

get_InstanceOperationCount() overload

Source

fn add_update_receiver(self, receiver: impl Into<IUpdateReceiver>)

AddUpdateReceiver(crate::unity_engine::resource_management::iupdatereceiver::IUpdateReceiver) overload

Source

fn remove_update_reciever(self, receiver: impl Into<IUpdateReceiver>)

RemoveUpdateReciever(crate::unity_engine::resource_management::iupdatereceiver::IUpdateReceiver) overload

Source

fn get_allocator(self) -> IAllocationStrategy

get_Allocator() overload

Source

fn set_allocator(self, value: impl Into<IAllocationStrategy>)

set_Allocator(crate::unity_engine::resource_management::util::iallocationstrategy::IAllocationStrategy) overload

Source

fn get_resource_providers(self) -> IList_1_Interface<IResourceProvider>

get_ResourceProviders() overload

Source

fn get_certificate_handler_instance(self) -> CertificateHandler

get_CertificateHandlerInstance() overload

Source

fn set_certificate_handler_instance(self, value: impl Into<CertificateHandler>)

set_CertificateHandlerInstance(crate::unity_engine::networking::certificatehandler::CertificateHandler) overload

Source

fn ctor(self, alloc: impl Into<IAllocationStrategy>)

.ctor(crate::unity_engine::resource_management::util::iallocationstrategy::IAllocationStrategy) overload

Source

fn on_object_added(self, obj: impl Into<Object>)

OnObjectAdded(crate::system::object::Object) overload

Source

fn on_object_removed(self, obj: impl Into<Object>)

OnObjectRemoved(crate::system::object::Object) overload

Source

fn register_for_callbacks(self)

RegisterForCallbacks() overload

Source

fn clear_diagnostics_callback(self)

ClearDiagnosticsCallback() overload

Source

fn clear_diagnostic_callbacks(self)

ClearDiagnosticCallbacks() overload

Source

fn unregister_diagnostic_callback( self, func: impl Into<Action_1<ResourceManager_DiagnosticEventContext>>, )

UnregisterDiagnosticCallback(crate::system::action_1::Action_1<crate::unity_engine::resource_management::resourcemanager::ResourceManager_DiagnosticEventContext>) overload

Source

fn register_diagnostic_callback( self, func: impl Into<Action_4<AsyncOperationHandle, ResourceManager_DiagnosticEventType, i32, Object>>, )

RegisterDiagnosticCallback(crate::system::action_4::Action_4<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle,crate::unity_engine::resource_management::resourcemanager::ResourceManager_DiagnosticEventType,i32,crate::system::object::Object>) overload

Source

fn register_diagnostic_callback_2( self, func: impl Into<Action_1<ResourceManager_DiagnosticEventContext>>, )

RegisterDiagnosticCallback(crate::system::action_1::Action_1<crate::unity_engine::resource_management::resourcemanager::ResourceManager_DiagnosticEventContext>) overload

Source

fn post_diagnostic_event( self, context: impl Into<ResourceManager_DiagnosticEventContext>, )

PostDiagnosticEvent(crate::unity_engine::resource_management::resourcemanager::ResourceManager_DiagnosticEventContext) overload

Source

fn get_resource_provider( self, t: impl Into<SystemType>, location: impl Into<IResourceLocation>, ) -> IResourceProvider

GetResourceProvider(::unity::SystemType, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation) overload

Source

fn get_default_type_for_location( self, loc: impl Into<IResourceLocation>, ) -> SystemType

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

Source

fn calculate_locations_hash( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, t: impl Into<SystemType>, ) -> i32

CalculateLocationsHash(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>, ::unity::SystemType) overload

Source

fn provide_resource( self, location: impl Into<IResourceLocation>, desired_type: impl Into<SystemType>, release_dependencies_on_failure: impl Into<bool>, ) -> AsyncOperationHandle

ProvideResource(crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation, ::unity::SystemType, bool) overload

Source

fn provide_resource_2<M0: IlType + Copy + ClassIdentity>( self, location: impl Into<IResourceLocation>, ) -> AsyncOperationHandle_1<M0>

Source

fn start_operation<M0: IlType + Copy + ClassIdentity>( self, operation: impl Into<AsyncOperationBase_1<M0>>, dependency: impl Into<AsyncOperationHandle>, ) -> AsyncOperationHandle_1<M0>

Source

fn start_operation_2( self, operation: impl Into<IAsyncOperation>, dependency: impl Into<AsyncOperationHandle>, ) -> AsyncOperationHandle

StartOperation(crate::unity_engine::resource_management::async_operations::iasyncoperation::IAsyncOperation, crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle) overload

Source

fn on_instance_operation_destroy(self, o: impl Into<IAsyncOperation>)

OnInstanceOperationDestroy(crate::unity_engine::resource_management::async_operations::iasyncoperation::IAsyncOperation) overload

Source

fn on_operation_destroy_non_cached(self, o: impl Into<IAsyncOperation>)

OnOperationDestroyNonCached(crate::unity_engine::resource_management::async_operations::iasyncoperation::IAsyncOperation) overload

Source

fn on_operation_destroy_cached(self, o: impl Into<IAsyncOperation>)

OnOperationDestroyCached(crate::unity_engine::resource_management::async_operations::iasyncoperation::IAsyncOperation) overload

Source

fn create_operation<M0: IlType + Copy + ClassIdentity>( self, actual_type: impl Into<SystemType>, type_hash: impl Into<i32>, cache_key: impl Into<IOperationCacheKey>, on_destroy_action: impl Into<Action_1<IAsyncOperation>>, ) -> M0

Source

fn add_operation_to_cache( self, key: impl Into<IOperationCacheKey>, operation: impl Into<IAsyncOperation>, )

AddOperationToCache(crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey, crate::unity_engine::resource_management::async_operations::iasyncoperation::IAsyncOperation) overload

Source

fn remove_operation_from_cache(self, key: impl Into<IOperationCacheKey>) -> bool

RemoveOperationFromCache(crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey) overload

Source

fn is_operation_cached(self, key: impl Into<IOperationCacheKey>) -> bool

IsOperationCached(crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey) overload

Source

fn cached_operation_count(self) -> i32

CachedOperationCount() overload

Source

fn create_completed_operation<M0: IlType + Copy + ClassIdentity>( self, result: impl Into<M0>, error_msg: impl Into<Il2CppString>, ) -> AsyncOperationHandle_1<M0>

Source

fn release(self, handle: impl Into<AsyncOperationHandle>)

Release(crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle) overload

Source

fn acquire(self, handle: impl Into<AsyncOperationHandle>)

Acquire(crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle) overload

Source

fn acquire_group_op_from_cache( self, key: impl Into<IOperationCacheKey>, ) -> GroupOperation

AcquireGroupOpFromCache(crate::unity_engine::resource_management::util::ioperationcachekey::IOperationCacheKey) overload

Source

fn create_group_operation<M0: IlType + Copy + ClassIdentity>( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, ) -> AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>>

Source

fn create_group_operation_2<M0: IlType + Copy + ClassIdentity>( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, allow_failed_dependencies: impl Into<bool>, ) -> AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>>

Source

fn create_generic_group_operation( self, operations: impl Into<List_1<AsyncOperationHandle>>, released_cached_op_on_complete: impl Into<bool>, ) -> AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>>

CreateGenericGroupOperation(crate::system::collections::generic::list_1::List_1<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle>, bool) overload

Source

fn provide_resource_group_cached( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, group_hash: impl Into<i32>, desired_type: impl Into<SystemType>, callback: impl Into<Action_1<AsyncOperationHandle>>, release_dependencies_on_failure: impl Into<bool>, ) -> AsyncOperationHandle_1<IList_1_Interface<AsyncOperationHandle>>

ProvideResourceGroupCached(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>, i32, ::unity::SystemType, crate::system::action_1::Action_1<crate::unity_engine::resource_management::async_operations::asyncoperationhandle::AsyncOperationHandle>, bool) overload

Source

fn provide_resources<M0: IlType + Copy + ClassIdentity>( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, callback: impl Into<Action_1<M0>>, ) -> AsyncOperationHandle_1<IList_1_Interface<M0>>

Source

fn provide_resources_2<M0: IlType + Copy + ClassIdentity>( self, locations: impl Into<IList_1_Interface<IResourceLocation>>, release_dependencies_on_failure: impl Into<bool>, callback: impl Into<Action_1<M0>>, ) -> AsyncOperationHandle_1<IList_1_Interface<M0>>

Source

fn create_chain_operation<M0: IlType + Copy + ClassIdentity, M1: IlType + Copy + ClassIdentity>( self, dependent_op: impl Into<AsyncOperationHandle_1<M1>>, callback: impl Into<Func_2<AsyncOperationHandle_1<M1>, AsyncOperationHandle_1<M0>>>, ) -> AsyncOperationHandle_1<M0>

Source

fn create_chain_operation_2<M0: IlType + Copy + ClassIdentity>( self, dependent_op: impl Into<AsyncOperationHandle>, callback: impl Into<Func_2<AsyncOperationHandle, AsyncOperationHandle_1<M0>>>, ) -> AsyncOperationHandle_1<M0>

Source

fn create_chain_operation_3<M0: IlType + Copy + ClassIdentity, M1: IlType + Copy + ClassIdentity>( self, dependent_op: impl Into<AsyncOperationHandle_1<M1>>, callback: impl Into<Func_2<AsyncOperationHandle_1<M1>, AsyncOperationHandle_1<M0>>>, release_dependencies_on_failure: impl Into<bool>, ) -> AsyncOperationHandle_1<M0>

Source

fn create_chain_operation_4<M0: IlType + Copy + ClassIdentity>( self, dependent_op: impl Into<AsyncOperationHandle>, callback: impl Into<Func_2<AsyncOperationHandle, AsyncOperationHandle_1<M0>>>, release_dependencies_on_failure: impl Into<bool>, ) -> AsyncOperationHandle_1<M0>

Source

fn provide_scene( self, scene_provider: impl Into<ISceneProvider_Interface>, location: impl Into<IResourceLocation>, load_mode: impl Into<LoadSceneMode>, activate_on_load: impl Into<bool>, priority: impl Into<i32>, ) -> AsyncOperationHandle_1<SceneInstance>

ProvideScene(crate::unity_engine::resource_management::resource_providers::isceneprovider_interface::ISceneProvider_Interface, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation, crate::unity_engine::scene_management::loadscenemode::LoadSceneMode, bool, i32) overload

Source

fn release_scene( self, scene_provider: impl Into<ISceneProvider_Interface>, scene_load_handle: impl Into<AsyncOperationHandle_1<SceneInstance>>, ) -> AsyncOperationHandle_1<SceneInstance>

ReleaseScene(crate::unity_engine::resource_management::resource_providers::isceneprovider_interface::ISceneProvider_Interface, crate::unity_engine::resource_management::async_operations::asyncoperationhandle_1::AsyncOperationHandle_1<crate::unity_engine::resource_management::resource_providers::sceneinstance::SceneInstance>) overload

Source

fn provide_instance( self, provider: impl Into<IInstanceProvider_Interface>, location: impl Into<IResourceLocation>, instantiate_parameters: impl Into<InstantiationParameters>, ) -> AsyncOperationHandle_1<GameObject>

ProvideInstance(crate::unity_engine::resource_management::resource_providers::iinstanceprovider_interface::IInstanceProvider_Interface, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation, crate::unity_engine::resource_management::resource_providers::instantiationparameters::InstantiationParameters) overload

Source

fn cleanup_scene_instances(self, scene: impl Into<Scene>)

CleanupSceneInstances(crate::unity_engine::scene_management::scene::Scene) overload

Source

fn execute_deferred_callbacks(self)

ExecuteDeferredCallbacks() overload

Source

fn register_for_deferred_callback( self, op: impl Into<IAsyncOperation>, increment_ref_count: impl Into<bool>, )

RegisterForDeferredCallback(crate::unity_engine::resource_management::async_operations::iasyncoperation::IAsyncOperation, bool) overload

Source

fn update(self, unscaled_delta_time: impl Into<f32>)

Update(f32) overload

Source

fn dispose(self)

Dispose() 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: IResourceManager> IResourceManagerMethods for __T

Available on crate feature unity_engine-resource_management-resourcemanager only.