Class AssetBundleRequestOptions | Addressables | 1.11.2
docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetBundleRequestOptions

    Contains cache information to be used by the AssetBundleProvider

    Inheritance
    Object
    AssetBundleRequestOptions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Syntax
    [Serializable]
    public class AssetBundleRequestOptions : ILocationSizeData

    Properties

    BundleName

    The name of the original bundle. This does not contain the appended hash.

    Declaration
    public string BundleName { get; set; }
    Property Value
    Type Description
    String

    BundleSize

    The size of the bundle, in bytes.

    Declaration
    public long BundleSize { get; set; }
    Property Value
    Type Description
    Int64

    ChunkedTransfer

    Indicates whether the UnityWebRequest system should employ the HTTP/1.1 chunked-transfer encoding method.

    Declaration
    public bool ChunkedTransfer { get; set; }
    Property Value
    Type Description
    Boolean

    Crc

    CRC value of the bundle.

    Declaration
    public uint Crc { get; set; }
    Property Value
    Type Description
    UInt32

    Hash

    Hash value of the asset bundle.

    Declaration
    public string Hash { get; set; }
    Property Value
    Type Description
    String

    RedirectLimit

    Indicates the number of redirects which this UnityWebRequest will follow before halting with a “Redirect Limit Exceeded” system error.

    Declaration
    public int RedirectLimit { get; set; }
    Property Value
    Type Description
    Int32

    RetryCount

    Indicates the number of times the request will be retried.

    Declaration
    public int RetryCount { get; set; }
    Property Value
    Type Description
    Int32

    Timeout

    Sets UnityWebRequest to attempt to abort after the number of seconds in timeout have passed.

    Declaration
    public int Timeout { get; set; }
    Property Value
    Type Description
    Int32

    UseCrcForCachedBundle

    If false, the CRC will not be used when loading bundles from the cache.

    Declaration
    public bool UseCrcForCachedBundle { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    ComputeSize(IResourceLocation, ResourceManager)

    Computes the amount of data needed to be downloaded for this bundle.

    Declaration
    public virtual long ComputeSize(IResourceLocation location, ResourceManager resourceManager)
    Parameters
    Type Name Description
    IResourceLocation location
    ResourceManager resourceManager
    Returns
    Type Description
    Int64

    The size in bytes of the bundle that is needed to be downloaded. If the local cache contains the bundle or it is a local bundle, 0 will be returned.

    Implements
    ILocationSizeData.ComputeSize(IResourceLocation, ResourceManager)
    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