private void ShowAssetBundleInspector(ReportBundleInfo bundleInfo) { if (bundleInfo.IsRawFile()) { return; } string rootDirectory = Path.GetDirectoryName(_reportFilePath); string filePath = $"{rootDirectory}/{bundleInfo.Hash}"; if (File.Exists(filePath)) { Selection.activeObject = AssetBundleRecorder.GetAssetBundle(filePath); } else { Selection.activeObject = null; } }
public void OnDestroy() { AssetBundleRecorder.UnloadAll(); }