Class CachedProvider | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CachedProvider

    Inheritance
    System.Object
    CachedProvider
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.ResourceManagement
    Syntax
    public class CachedProvider : IResourceProvider

    Constructors

    CachedProvider(IResourceProvider, Int32, Single)

    Declaration
    public CachedProvider(IResourceProvider provider, int maxCacheItemCount = 0, float maxCacheItemAge = 0F)
    Parameters
    Type Name Description
    IResourceProvider provider
    System.Int32 maxCacheItemCount
    System.Single maxCacheItemAge

    Properties

    ProviderId

    Declaration
    public string ProviderId { get; }
    Property Value
    Type Description
    System.String
    Implements
    IResourceProvider.ProviderId

    Methods

    CanProvide<TObject>(IResourceLocation)

    Declaration
    public bool CanProvide<TObject>(IResourceLocation location)where TObject : class
    Parameters
    Type Name Description
    IResourceLocation location
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    TObject
    Implements
    IResourceProvider.CanProvide<TObject>(IResourceLocation)

    Provide<TObject>(IResourceLocation, IAsyncOperation<IList<Object>>)

    Declaration
    public IAsyncOperation<TObject> Provide<TObject>(IResourceLocation location, IAsyncOperation<IList<object>> loadDependencyOperation)where TObject : class
    Parameters
    Type Name Description
    IResourceLocation location
    IAsyncOperation<System.Collections.Generic.IList<System.Object>> loadDependencyOperation
    Returns
    Type Description
    IAsyncOperation<TObject>
    Type Parameters
    Name Description
    TObject
    Implements
    IResourceProvider.Provide<TObject>(IResourceLocation, IAsyncOperation<IList<Object>>)

    Release(IResourceLocation, Object)

    Declaration
    public bool Release(IResourceLocation location, object asset)
    Parameters
    Type Name Description
    IResourceLocation location
    System.Object asset
    Returns
    Type Description
    System.Boolean
    Implements
    IResourceProvider.Release(IResourceLocation, Object)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023