Public Member Functions | Protected Member Functions | Properties | List of all members
PackedManifest.Loader Class Reference

Detailed Description

A Loader for PackedManifest.

Inheritance diagram for PackedManifest.Loader:
IManifestLoader

Public Member Functions

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

Protected Member Functions

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

Properties

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

Member Function Documentation

◆ Begin()

IOperation Begin ( BundleManager  manager,
string  absolutePath,
int  version,
string  baseUrl 
)
inline

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.

Parameters
manager Target manager
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

Get the current directory

Only valid after Initialize completes without error.

◆ ActiveVariants

string [] ActiveVariants
getset

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.