docs.unity.cn
    Show / Hide Table of Contents

    Class AssetBundleProvider

    IResourceProvider for asset bundles. Loads bundles via UnityWebRequestAssetBundle API if the internalId starts with "http". If not, it will load the bundle via AssetBundle.LoadFromFileAsync.

    Inheritance
    Object
    ResourceProviderBase
    AssetBundleProvider
    Inherited Members
    ResourceProviderBase.m_ProviderId
    ResourceProviderBase.m_BehaviourFlags
    ResourceProviderBase.ProviderId
    ResourceProviderBase.Initialize(String, String)
    ResourceProviderBase.CanProvide(Type, IResourceLocation)
    ResourceProviderBase.ToString()
    ResourceProviderBase.InitializeAsync(ResourceManager, String, String)
    ResourceProviderBase.IResourceProvider.BehaviourFlags
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Syntax
    public class AssetBundleProvider : ResourceProviderBase, IResourceProvider, IInitializableObject

    Methods

    Name Description
    GetDefaultType(IResourceLocation)

    Get the default type of object that this provider can provide.

    Provide(ProvideHandle)

    Provide the object specified in the provideHandle.

    Release(IResourceLocation, Object)

    Releases the asset bundle via AssetBundle.Unload(true).

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use