docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateCacheKeyForLocation

    CreateCacheKeyForLocation(ResourceManager, IResourceLocation, Type)

    Creates the cache key used to lookup operations in the ResourceManager cache. Override this method to provide custom cache key generation for your provider.

    Declaration
    public override IOperationCacheKey CreateCacheKeyForLocation(ResourceManager rm, IResourceLocation location, Type desiredType)
    Parameters
    Type Name Description
    ResourceManager rm

    The ResourceManager instance.

    IResourceLocation location

    The resource location.

    Type desiredType

    The desired type of the resource.

    Returns
    Type Description
    IOperationCacheKey

    An IOperationCacheKey for use with the async operation cache.

    Overrides
    ResourceProviderBase.CreateCacheKeyForLocation(ResourceManager, IResourceLocation, Type)
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)