docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ResourceManager

    Entry point for ResourceManager API

    Inheritance
    object
    ResourceManager
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.ResourceManagement
    Assembly: solution.dll
    Syntax
    public class ResourceManager : IDisposable

    Constructors

    Name Description
    ResourceManager(IAllocationStrategy)

    Constructor for the resource manager.

    Properties

    Name Description
    Allocator

    The allocation strategy object.

    CertificateHandlerInstance

    The CertificateHandler instance object.

    ExceptionHandler

    Global exception handler. This will be called whenever an IAsyncOperation.OperationException is set to a non-null value.

    InternalIdTransformFunc

    Functor to transform internal ids before being used by the providers.

    ResourceProviders

    Gets the list of configured IResourceProvider objects. Resource Providers handle load and release operations for IResourceLocation objects.

    WebRequestOverride

    Delegate that can be used to override the web request options before being sent.

    Methods

    Name Description
    Acquire(AsyncOperationHandle)

    Increment reference count of operation handle.

    AddUpdateReceiver(IUpdateReceiver)

    Add an update reveiver.

    CleanupSceneInstances(Scene)

    Releases all instances the given scence.

    CreateChainOperation<TObject>(AsyncOperationHandle, Func<AsyncOperationHandle, AsyncOperationHandle<TObject>>)

    Create a chain operation to handle dependencies.

    CreateChainOperation<TObject>(AsyncOperationHandle, Func<AsyncOperationHandle, AsyncOperationHandle<TObject>>, bool)

    Create a chain operation to handle dependencies.

    CreateChainOperation<TObject, TObjectDependency>(AsyncOperationHandle<TObjectDependency>, Func<AsyncOperationHandle<TObjectDependency>, AsyncOperationHandle<TObject>>)

    Create a chain operation to handle dependencies.

    CreateChainOperation<TObject, TObjectDependency>(AsyncOperationHandle<TObjectDependency>, Func<AsyncOperationHandle<TObjectDependency>, AsyncOperationHandle<TObject>>, bool)

    Create a chain operation to handle dependencies.

    CreateCompletedOperationWithException<TObject>(TObject, Exception)

    Creates an operation that has already completed with a specified result and error message./>.

    CreateCompletedOperation<TObject>(TObject, string)

    Creates an operation that has already completed with a specified result and error message./>.

    CreateGenericGroupOperation(List<AsyncOperationHandle>, bool)

    Create a group operation for a set of AsyncOperationHandles

    CreateGroupOperation<T>(IList<IResourceLocation>)

    Create a group operation for a set of locations.

    Dispose()

    Disposes internal resources used by the resource manager

    GetResourceProvider(Type, IResourceLocation)

    Gets the appropriate IResourceProvider for the given location and type.

    ProvideInstance(IInstanceProvider, IResourceLocation, InstantiationParameters)

    Asynchronously instantiate a prefab (GameObject) at the specified location.

    ProvideResource<TObject>(IResourceLocation)

    Load the TObject at the specified location.

    ProvideResources<TObject>(IList<IResourceLocation>, Action<TObject>)

    Asynchronously load all objects in the given collection of locations. If any matching location fails, all loads and dependencies will be released. The returned .Result will be null, and .Status will be Failed.

    ProvideResources<TObject>(IList<IResourceLocation>, bool, Action<TObject>)

    Asynchronously load all objects in the given collection of locations.

    ProvideScene(ISceneProvider, IResourceLocation, LoadSceneMode, bool, int)

    Load a scene at a specificed resource location.

    ProvideScene(ISceneProvider, IResourceLocation, LoadSceneParameters, bool, int)

    Load a scene at a specificed resource location.

    ProvideScene(ISceneProvider, IResourceLocation, LoadSceneParameters, SceneReleaseMode, bool, int)

    Load a scene at a specificed resource location.

    Release(AsyncOperationHandle)

    Release the operation associated with the specified handle

    ReleaseScene(ISceneProvider, AsyncOperationHandle<SceneInstance>)

    Release a scene.

    RemoveUpdateReciever(IUpdateReceiver)

    Remove update receiver.

    StartOperation<TObject>(AsyncOperationBase<TObject>, AsyncOperationHandle)

    Registers an operation with the ResourceManager. The operation will be executed when the dependency completes. This should only be used when creating custom operations.

    TransformInternalId(IResourceLocation)

    Checks for an internal id transform function and uses it to modify the internal id value.

    In This Article
    • Constructors
    • Properties
    • Methods
    Back to top
    Copyright © 2024 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)