Struct ProvideHandle | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ProvideHandle

    Container for all data need by providers to fulfill requests.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Syntax
    public struct ProvideHandle

    Properties

    DependencyCount

    Number of dependencies.

    Declaration
    public int DependencyCount { get; }
    Property Value
    Type Description
    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
    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.

    Boolean status

    True if the operation was successful, false otherwise.

    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
    IList<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
    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
    Func<Single> callback

    The callback function.

    In This Article
    • Properties
      • DependencyCount
      • Location
      • ResourceManager
      • Type
    • Methods
      • Complete<T>(T, Boolean, Exception)
      • GetDependencies(IList<Object>)
      • GetDependency<TDepObject>(Int32)
      • SetProgressCallback(Func<Single>)
    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