Public Member Functions | Properties | List of all members
IBundleDirectoryLoader Interface Reference

Standard interface for loading a concrete IBundleDirectory. More...

Detailed Description

Standard interface for loading a concrete IBundleDirectory.

Using this the application can make a chain of loaders as long as each layer implements this interface. Augmented by the BundleDirectoryLoaderExtensions.

Inheritance diagram for IBundleDirectoryLoader:
PackedManifest.Loader UnityManifestBundleDirectory

Public Member Functions

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

Properties

IBundleDirectory  ActiveDirectory [get]
  Get the current directory More...
 

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.

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

Implemented in UnityManifestBundleDirectory, and PackedManifest.Loader.

Property Documentation

◆ ActiveDirectory

IBundleDirectory ActiveDirectory
get

Get the current directory

Only valid after Initialize completes without error.