public static IEnumerator _CreateFromMemory(string path, Handle_CreateFromMemory handle) { int size = 0; AssetBundleCreateRequest bundleRequest = AssetBundle.LoadFromMemoryAsync(ResourceCommon.getAssetBundleFileBytes(path, ref size)); yield return(bundleRequest); handle(bundleRequest, size); }
public void Dispose() { ResourceCommon.Log("Destory " + mPath); if (null != mAssetBundle) { //mAssetBundle.Unload(true); mAssetBundle = null; } mNextLevelAssets.Clear(); mAsset = null; }