Exemplo n.º 1
0
        static AsyncOperationSet GetAssetBundleRequestTable(AssetBundle assetBundle, AssetEntryRecord assetEntryRecord)
        {
            string             assetName = assetBundle.GetAllAssetNames().FirstOrDefault();
            AssetBundleRequest request   = assetBundle.LoadAssetAsync(assetName);

            return(AsyncOperationSet.CreateByAssetBundleRequest(request));
        }
Exemplo n.º 2
0
        static AsyncOperationSet GetAssetBundleRequestMultiple <T>(AssetBundle assetBundle, AssetEntryRecord assetEntryRecord) where T : UnityEngine.Object
        {
            string             assetName = assetEntryRecord.AssetName;
            AssetBundleRequest request   = assetBundle.LoadAssetWithSubAssetsAsync <T>(assetName);

            return(AsyncOperationSet.CreateByAssetBundleRequest(request));
        }