Skip to main content

IIResourceLocatorMethods

Trait IIResourceLocatorMethods 

Source
pub trait IIResourceLocatorMethods: IIResourceLocator {
    // Provided methods
    fn get_locator_id(self) -> Il2CppString { ... }
    fn get_keys(self) -> IEnumerable_1<Object> { ... }
    fn locate(
        self,
        key: impl Into<Object>,
        type: impl Into<SystemType>,
    ) -> (bool, IList_1_Interface<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 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

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: IIResourceLocator> IIResourceLocatorMethods for __T

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