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

Public Member Functions

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

Protected Member Functions

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


string[]  ActiveVariants [get, set]
IBundleManifest  ActiveDirectory [get]
- Properties inherited from IManifestLoader
IBundleManifest  ActiveDirectory [get]

Member Function Documentation

◆ Initialize()

IOperation 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.

Can be updated during application run for a version change.

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 IManifestLoader.

Property Documentation

◆ ActiveDirectory

IBundleManifest ActiveDirectory

Get the current directory

Only valid after Initialize completes without error.

◆ ActiveVariants

string [] ActiveVariants

The list of bundle variants we should try to load

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.