Skip to content

Instantly share code, notes, and snippets.

@neon-izm
Last active July 6, 2018 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neon-izm/42cd23c58def898f923961c719bc59c7 to your computer and use it in GitHub Desktop.
Save neon-izm/42cd23c58def898f923961c719bc59c7 to your computer and use it in GitHub Desktop.
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