docs.unity3d.com
    目次を表示する/隠す

    Class ResourceManager

    Entry point for ResourceManager API

    Inheritance
    Object
    ResourceManager
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.ResourceManagement
    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. See the TransformInternalId documentation for more details.

    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.

    ClearDiagnosticCallbacks()

    Clears out the diagnostics callbacks handler.

    ClearDiagnosticsCallback()

    Clears out the diagnostics callback handler.

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

    Create a chain operation to handle dependencies.

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

    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>>, Boolean)

    Create a chain operation to handle dependencies.

    CreateCompletedOperation<TObject>(TObject, String)

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

    CreateCompletedOperationWithException<TObject>(TObject, Exception)

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

    CreateGenericGroupOperation(List<AsyncOperationHandle>, Boolean)

    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>, Boolean, Action<TObject>)

    Asynchronously load all objects in the given collection of locations.

    ProvideScene(ISceneProvider, IResourceLocation, LoadSceneMode, Boolean, Int32)

    Load a scene at a specificed resource location.

    ProvideScene(ISceneProvider, IResourceLocation, LoadSceneParameters, Boolean, Int32)

    Load a scene at a specificed resource location.

    RegisterDiagnosticCallback(Action<AsyncOperationHandle, ResourceManager.DiagnosticEventType, Int32, Object>)

    Register a handler for diagnostic events.

    RegisterDiagnosticCallback(Action<ResourceManager.DiagnosticEventContext>)

    Register a handler for diagnostic events.

    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.

    UnregisterDiagnosticCallback(Action<ResourceManager.DiagnosticEventContext>)

    Unregister a handler for diagnostic events.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)