public T Get <T>(string name, string path) where T : Object { T result = (mCustomAssets != default) ? mCustomAssets.GetCustomAsset <T>(name, path) : default; if ((result == default) && HasBundel(name)) { IAssetBundleInfo assetBundleInfo = mCaches[name]; result = assetBundleInfo.GetAsset <T>(path); }
private void RemoveBundle(ref string name) { if (mCaches.ContainsKey(name)) { mABManifests.Remove(name); IAssetBundleInfo info = mCaches[name]; info.Dispose(); } }
public GameObject Get(string name, string path) { GameObject result = (mCustomAssets != default) ? mCustomAssets.GetCustomAsset <GameObject>(name, path) : default; if ((result == default) && HasBundel(name)) { IAssetBundleInfo assetBundleInfo = mCaches[name]; result = assetBundleInfo.GetAsset(path); } return(result); }