Skip to content

Instantly share code, notes, and snippets.

@neon-izm neon-izm/file0.txt
Last active Jul 6, 2018

Embed
What would you like to do?
AssetBundle運用をなんとかするAutoya ref: https://qiita.com/neon-izm/items/27326106738cee2fff69
Autoya.AssetBundle_DownloadAssetBundleListsIfNeed(status => { }, (code, reason, autoyaStatus) => { });
// wait downloading assetBundleList.
while (!Autoya.AssetBundle_IsAssetBundleFeatureReady())
{
yield return null;
}
listDownloadUrl/listIdentity/platform/listversion/listIdentity.json
new AssetBundleListInfo
{
listIdentity = "main_assets",
listVersion = "1.0.0",
listDownloadUrl = "https://raw.githubusercontent.com/sassembla/Autoya/master/AssetBundles"
}
https://raw.githubusercontent.com/sassembla/Autoya/master/AssetBundles/main_assets/Android/1.0.0/main_assets.json
{
"identity": "unitychan_prefabs",
"version": "1.0.0"
}
using AutoyaFramework;
using AutoyaFramework.AssetBundles;
using UnityEngine;
public class ClearAssetBundleDonwloadedCache : MonoBehaviour {
void OnDestroy()
{
Autoya.AssetBundle_DeleteAllStorageCache();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.