docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AssetBundleRequestOptions

    Contains cache information to be used by the AssetBundleProvider

    Inheritance
    object
    AssetBundleRequestOptions
    VirtualAssetBundleRequestOptions
    Implements
    ILocationSizeData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Assembly: Unity.ResourceManager.dll
    Syntax
    [Serializable]
    public class AssetBundleRequestOptions : ILocationSizeData

    Properties

    Name Description
    AssetLoadMode

    Determines how Assets are loaded when accessed.

    BundleName

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

    BundleSize

    The size of the bundle, in bytes.

    ChunkedTransfer

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

    ClearOtherCachedVersionsWhenLoaded

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

    Crc

    CRC value of the bundle.

    Hash

    Hash value of the asset bundle.

    RedirectLimit

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

    RetryCount

    Indicates the number of times the request will be retried.

    Timeout

    Attempt to abort after the number of seconds in timeout have passed, where the UnityWebRequest has received no data.

    UseCrcForCachedBundle

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

    UseUnityWebRequestForLocalBundles

    If true, UnityWebRequest will be used even if the bundle is stored locally.

    Methods

    Name Description
    ComputeSize(IResourceLocation, ResourceManager)

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

    In This Article
    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)