コード例 #1
0
        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);
        }
コード例 #2
0
        public void Dispose()
        {
            ResourceCommon.Log("Destory " + mPath);

            if (null != mAssetBundle)
            {
                //mAssetBundle.Unload(true);
                mAssetBundle = null;
            }
            mNextLevelAssets.Clear();
            mAsset = null;
        }