From 8583927c48ad2b914439230c8b97ea8cd5888196 Mon Sep 17 00:00:00 2001 From: hevinci Date: Sun, 13 Mar 2022 20:29:36 +0800 Subject: [PATCH] Update AssetBundleBrowser --- .../Editor/AssetBundleBrowser/AssetBundleBrowserWindow.cs | 4 +++- .../AssetBundleBrowser/VisualViewers/AssetListViewer.cs | 4 +++- .../AssetBundleBrowser/VisualViewers/BundleListViewer.cs | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBrowser/AssetBundleBrowserWindow.cs b/Assets/YooAsset/Editor/AssetBundleBrowser/AssetBundleBrowserWindow.cs index b54eefe..f2f7637 100644 --- a/Assets/YooAsset/Editor/AssetBundleBrowser/AssetBundleBrowserWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleBrowser/AssetBundleBrowserWindow.cs @@ -1,3 +1,4 @@ +#if UNITY_2019_4_OR_NEWER using System.IO; using System.Linq; using System.Collections.Generic; @@ -114,4 +115,5 @@ namespace YooAsset.Editor } } } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Assets/YooAsset/Editor/AssetBundleBrowser/VisualViewers/AssetListViewer.cs b/Assets/YooAsset/Editor/AssetBundleBrowser/VisualViewers/AssetListViewer.cs index 4ee158f..128cbfb 100644 --- a/Assets/YooAsset/Editor/AssetBundleBrowser/VisualViewers/AssetListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleBrowser/VisualViewers/AssetListViewer.cs @@ -1,3 +1,4 @@ +#if UNITY_2019_4_OR_NEWER using System.IO; using System.Linq; using System.Collections.Generic; @@ -238,4 +239,5 @@ namespace YooAsset.Editor return (EditorTools.GetFileSize(fullPath) / 1024f).ToString("f1") + " KB"; } } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Assets/YooAsset/Editor/AssetBundleBrowser/VisualViewers/BundleListViewer.cs b/Assets/YooAsset/Editor/AssetBundleBrowser/VisualViewers/BundleListViewer.cs index 11ba5dc..d27b4e6 100644 --- a/Assets/YooAsset/Editor/AssetBundleBrowser/VisualViewers/BundleListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleBrowser/VisualViewers/BundleListViewer.cs @@ -1,3 +1,4 @@ +#if UNITY_2019_4_OR_NEWER using System.IO; using System.Linq; using System.Collections.Generic; @@ -291,4 +292,5 @@ namespace YooAsset.Editor return result; } } -} \ No newline at end of file +} +#endif \ No newline at end of file