From 344260266c572467dddefda0d82264600c1aa0df Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Sun, 5 Oct 2025 02:10:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9AB=E5=8C=85=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Convention/Editor/File.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Convention/Editor/File.cs b/Convention/Editor/File.cs index 61d71cd..048630f 100644 --- a/Convention/Editor/File.cs +++ b/Convention/Editor/File.cs @@ -1,7 +1,4 @@ -using System.Collections; -using System.Collections.Generic; using System.IO; -using Convention.SO; using UnityEditor; using UnityEngine; @@ -12,7 +9,7 @@ namespace Convention [MenuItem("Convention/AssetBundle/Create for Android")] static void CreatAssetBundle() { - string path = Path.Combine(Application.streamingAssetsPath, "AssetBundle", "Android"); + string path = Path.Combine(Application.dataPath, "../", "AssetBundle", "Android"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); @@ -24,7 +21,7 @@ namespace Convention [MenuItem("Convention/AssetBundle/Create for IOS")] static void BuildAllAssetBundlesForIOS() { - string dirName = "AssetBundles/IOS/IOS"; + string dirName = "AssetBundles/IOS/"; if (!Directory.Exists(dirName)) { Directory.CreateDirectory(dirName); @@ -37,7 +34,7 @@ namespace Convention [MenuItem("Convention/AssetBundle/Create for Windows")] static void CreatPCAssetBundleForwINDOWS() { - string path = Path.Combine(Application.streamingAssetsPath, "AssetBundle", "Windows"); + string path = Path.Combine(Application.dataPath, "../", "AssetBundle", "Windows"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); @@ -49,7 +46,7 @@ namespace Convention [MenuItem("Convention/AssetBundle/Create for Mac")] static void CreatPCAssetBundleForMac() { - string path = Path.Combine(Application.streamingAssetsPath, "AssetBundle", "Mac"); + string path = Path.Combine(Application.dataPath, "../", "AssetBundle", "Mac"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path);