Skip to main content

ILegacyResourcesLocatorMethods

Trait ILegacyResourcesLocatorMethods 

Source
pub trait ILegacyResourcesLocatorMethods: ILegacyResourcesLocator {
    // Provided methods
    fn locate(
        self,
        key: impl Into<Object>,
        type: impl Into<SystemType>,
    ) -> (bool, IList_1_Interface<IResourceLocation>) { ... }
    fn get_keys(self) -> IEnumerable_1<Object> { ... }
    fn get_locator_id(self) -> Il2CppString { ... }
    fn ctor(self) { ... }
}

Provided Methods§

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 get_keys(self) -> IEnumerable_1<Object>

get_Keys() overload

Source

fn get_locator_id(self) -> Il2CppString

get_LocatorId() 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: ILegacyResourcesLocator> ILegacyResourcesLocatorMethods for __T

Available on crate feature unity_engine-addressable_assets-resource_locators-legacyresourceslocator only.