Public Member Functions | Protected Member Functions | Properties | List of all members
PackedManifest.Loader Class Reference
Inheritance diagram for PackedManifest.Loader:
IBundleDirectoryLoader

Public Member Functions

AssetBundleLoadOperation  Initialize (BundleManager manager, string absolutePath, int version, string baseUrl)
  Sets the source URL to the manifest and where all remote content is expected to be found. More...
 

Protected Member Functions

IEnumerator  LoadManifest (BundleManager manager, string absolutePath, int version, string baseUrl, AssetBundleGetVersionOperation response)
 

Properties

string[]  ActiveVariants [get, set]
  The list of bundle variants we should try to load More...
 
IBundleDirectory  ActiveDirectory [get]
  Get the current directory More...
 
- Properties inherited from IBundleDirectoryLoader
IBundleDirectory  ActiveDirectory [get]
  Get the current directory More...
 

Member Function Documentation

◆ Initialize()

AssetBundleLoadOperation Initialize ( BundleManager  manager,
string  absolutePath,
int  version,
string  baseUrl 
)

Can be updated during application run for a version change.

Parameters
version If cached locally and version number matches, won't hit network
absolutePath manifest path. Not necessarily from baseUrl
baseUrl prepended to all bundle requests. Ends with slash. Typically BundleManager.GetUrlPath(absolutePath).

Implements IBundleDirectoryLoader.

Property Documentation

◆ ActiveDirectory

IBundleDirectory ActiveDirectory
get

Only valid after Initialize completes without error.

◆ ActiveVariants

string [] ActiveVariants
getset

In highest to lowest priority order. Ignored for any bundle without a variant. Changes only affect bundles loaded in the future, not already loaded ones. Setting to null is an optimization to avoid needing to lookup variants.