protected override void OnRelease() { base.OnRelease(); if (_assetBundle != null) { _assetBundle.Unload(true); _assetBundle = null; } if (_stream != null) { _stream.Close(); _stream.Dispose(); _stream = null; } if (_provider != null) { _provider.Unload(this); _provider = null; } }
public UFileListBundle(BundleAssetProvider provider, Manifest.BundleInfo bundleInfo) : base(bundleInfo) { _provider = provider; }
public UAssetBundleBundle(BundleAssetProvider provider, Manifest.BundleInfo bundleInfo, EAssetHints hints) : base(bundleInfo) { _hints = hints; _provider = provider; }
public UZipArchiveBundle(BundleAssetProvider provider, Manifest.BundleInfo bundleInfo) : base(bundleInfo) { _provider = provider; }