Struct ProvideHandle | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Struct ProvideHandle

    Container for all data need by providers to fulfill requests.

    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Syntax
    public struct ProvideHandle

    Properties

    DependencyCount

    Number of dependencies.

    Declaration
    public int DependencyCount { get; }
    Property Value
    Type Description
    System.Int32

    Location

    The location for the request.

    Declaration
    public IResourceLocation Location { get; }
    Property Value
    Type Description
    IResourceLocation

    ResourceManager

    The ResourceManager used to create the operation.

    Declaration
    public ResourceManager ResourceManager { get; }
    Property Value
    Type Description
    ResourceManager

    Type

    The requested object type.

    Declaration
    public Type Type { get; }
    Property Value
    Type Description
    System.Type

    Methods

    Complete<T>(T, Boolean, Exception)

    Called to complete the operation.

    Declaration
    public void Complete<T>(T result, bool status, Exception exception)
    Parameters
    Type Name Description
    T result

    The result object.

    System.Boolean status

    True if the operation was successful, false otherwise.

    System.Exception exception

    The exception if the operation failed.

    Type Parameters
    Name Description
    T

    The type of object requested.

    GetDependencies(IList<Object>)

    Get the depedency objects.

    Declaration
    public void GetDependencies(IList<object> list)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<System.Object> list

    The list of dependecies to fill in.

    GetDependency<TDepObject>(Int32)

    Get a specific dependency object.

    Declaration
    public TDepObject GetDependency<TDepObject>(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the dependency.

    Returns
    Type Description
    TDepObject

    The dependency object.

    Type Parameters
    Name Description
    TDepObject

    The dependency type.

    SetProgressCallback(Func<Single>)

    Set the func for handling progress requests.

    Declaration
    public void SetProgressCallback(Func<float> callback)
    Parameters
    Type Name Description
    System.Func<System.Single> callback

    The callback function.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX