Last active
July 6, 2018 10:14
-
-
Save neon-izm/42cd23c58def898f923961c719bc59c7 to your computer and use it in GitHub Desktop.
AssetBundle運用をなんとかするAutoya ref: https://qiita.com/neon-izm/items/27326106738cee2fff69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Autoya.AssetBundle_DownloadAssetBundleListsIfNeed(status => { }, (code, reason, autoyaStatus) => { }); | |
// wait downloading assetBundleList. | |
while (!Autoya.AssetBundle_IsAssetBundleFeatureReady()) | |
{ | |
yield return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listDownloadUrl/listIdentity/platform/listversion/listIdentity.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new AssetBundleListInfo | |
{ | |
listIdentity = "main_assets", | |
listVersion = "1.0.0", | |
listDownloadUrl = "https://raw.githubusercontent.com/sassembla/Autoya/master/AssetBundles" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://raw.githubusercontent.com/sassembla/Autoya/master/AssetBundles/main_assets/Android/1.0.0/main_assets.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"identity": "unitychan_prefabs", | |
"version": "1.0.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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