Caches AssetBundles by their original URI. Generally you'd use the rather weird looking bundle URI schema bundle://https://cdn.yoursite.com/.. instead of using this directly. (That URI would result in an entry here with an address of "https://cdn...").
Static Public Member Functions | |
| static void | Add (string address, AssetBundle bundle) |
| Adds a bundle to the cache. More... | |
| static AssetBundle | Get (string address) |
| Gets a named bundle from the cache. More... | |
| static void | Remove (string address) |
| Removes a bundle from the cache. More... | |
| static void | Clear () |
| Clears the cache of all its contents. More... | |
Static Public Attributes | |
| static Dictionary< string, DataPackage > | Loading =new Dictionary<string,DataPackage>() |
| Bundles loading. More... | |
Static Private Attributes | |
| static Dictionary< string, AssetBundle > | Lookup =new Dictionary<string,AssetBundle>() |
| The set of all cached bundles. More... | |
|
inlinestatic |
Adds a bundle to the cache.
| address | The name to use to find your bundle. |
| bundle | The bundle to store in the cache. |
|
inlinestatic |
Clears the cache of all its contents.
|
inlinestatic |
Gets a named bundle from the cache.
| address | The name of the bundle to find. |
|
inlinestatic |
Removes a bundle from the cache.
| address | The name of the bundle to remove. |
|
static |
Bundles loading.
|
staticprivate |
The set of all cached bundles.