Skip to main content

IDynamicResourceLocatorMethods

Trait IDynamicResourceLocatorMethods 

Source
pub trait IDynamicResourceLocatorMethods: IDynamicResourceLocator {
    // Provided methods
    fn get_locator_id(self) -> Il2CppString { ... }
    fn get_keys(self) -> IEnumerable_1<Object> { ... }
    fn get_atlas_sprite_provider_id(self) -> Il2CppString { ... }
    fn ctor(self, addr: impl Into<AddressablesImpl>) { ... }
    fn locate(
        self,
        key: impl Into<Object>,
        type: impl Into<SystemType>,
    ) -> (bool, IList_1_Interface<IResourceLocation>) { ... }
    fn create_dynamic_locations(
        self,
        type: impl Into<SystemType>,
        locations: impl Into<IList_1_Interface<IResourceLocation>>,
        loc_name: impl Into<Il2CppString>,
        sub_key: impl Into<Il2CppString>,
        main_loc: impl Into<IResourceLocation>,
    ) { ... }
}

Provided Methods§

Source

fn get_locator_id(self) -> Il2CppString

get_LocatorId() overload

Source

fn get_keys(self) -> IEnumerable_1<Object>

get_Keys() overload

Source

fn get_atlas_sprite_provider_id(self) -> Il2CppString

get_AtlasSpriteProviderId() overload

Source

fn ctor(self, addr: impl Into<AddressablesImpl>)

.ctor(crate::unity_engine::addressable_assets::addressablesimpl::AddressablesImpl) overload

Source

fn locate( self, key: impl Into<Object>, type: impl Into<SystemType>, ) -> (bool, IList_1_Interface<IResourceLocation>)

Locate(crate::system::object::Object, ::unity::SystemType, *mutcrate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>) overload

Source

fn create_dynamic_locations( self, type: impl Into<SystemType>, locations: impl Into<IList_1_Interface<IResourceLocation>>, loc_name: impl Into<Il2CppString>, sub_key: impl Into<Il2CppString>, main_loc: impl Into<IResourceLocation>, )

CreateDynamicLocations(::unity::SystemType, crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation>, ::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::resource_management::resource_locations::iresourcelocation::IResourceLocation) 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: IDynamicResourceLocator> IDynamicResourceLocatorMethods for __T

Available on crate feature unity_engine-addressable_assets-dynamicresourcelocator only.