@studio.eode.wonderland/assetbundles
v1.3.0
Published
[UnityEngine] package. This plugin is only focused on using the asset bundles, to build and visualize them, we advise you to use the Asset Bundle Browser.
Downloads
3
Maintainers
Readme
This is the home page of this documentation
Introduction
Version
Released, Deprecated
About AssetBundles: "you should use the Addressable Assets package instead, as Unity has deprecated the AssetBundle Manager."
Dependencies
Common
Scope
AssetBundles tackles the issue of working with asset bundles in Unity which can prove to be quite cumbersome, by leveraging the straightforwardness of async/await based code made available with the new scripting upgrade to .NET 4.6.
This plugin is only focused on using the asset bundles, to build and visualize them, we advise you to use the Asset Bundle Browser.
Capabilities
- Simple code using Async/Await
- Local or remote bundles location
- Automatic bundles loading / unloading
- Automatic dependencies management
- Simulation mode
- Patching system
Example
async void Start () {
// Init with a source url
await AssetBundles.Init(Application.streamingAssetsPath);
// Load one asset (Cube from wonderland-tests)
var myCubePrefab = await AssetBundles.LoadAsset<GameObject>("wonderland-tests", "Cube");
// Load multiple assets (all prefabs in wonderland-tests)
var allMyPrefabs = await AssetBundles.LoadAllAssets<GameObject>("wonderland-tests");
}