diff --git a/Assets/YooAsset/Editor/AssetBundleBrowser/AssetBundleBrowserWindow.cs b/Assets/YooAsset/Editor/AssetBundleBrowser/AssetBundleBrowserWindow.cs index b54eefe2..f2f76377 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 4ee158f1..128cbfb5 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 11ba5dcb..d27b4e63 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