From 3ec86b08925cf4bf34c5d582d39ae40449aa1e9d Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Wed, 25 May 2022 23:20:52 +0800 Subject: [PATCH] Update TEngineEditor.cs --- Assets/TEngine/Editor/Helper/TEngineEditor.cs | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/Assets/TEngine/Editor/Helper/TEngineEditor.cs b/Assets/TEngine/Editor/Helper/TEngineEditor.cs index 0c742f0d..6426a431 100644 --- a/Assets/TEngine/Editor/Helper/TEngineEditor.cs +++ b/Assets/TEngine/Editor/Helper/TEngineEditor.cs @@ -91,31 +91,6 @@ namespace TEngine.Editor assetPaths = AssetDatabase.GetDependencies(assetPaths); AssetDatabase.ExportPackage(assetPaths, path, ExportPackageOptions.Interactive | ExportPackageOptions.Recurse | ExportPackageOptions.IncludeDependencies); } - - [MenuItem("Assets/Get Asset Path", priority = 3)] - static void GetAssetPath() - { - UnityEngine.Object selObj = Selection.activeObject; - - if (selObj != null) - { - string assetPath = AssetDatabase.GetAssetPath(selObj); - int sindex = assetPath.IndexOf(AssetConfig.AssetRootPath); - int eindex = assetPath.LastIndexOf('.'); - if (sindex >= 0 && eindex >= 0) - { - string resPath = assetPath.Substring(sindex + AssetConfig.AssetRootPath.Length + 1); - if (selObj is Sprite) - resPath += $"#{selObj.name}"; - TLogger.LogInfoSuccessd($"Asset path is {resPath}"); - EditorGUIUtility.systemCopyBuffer = resPath; - } - else - { - TLogger.LogError("This is not a Asset file!"); - } - } - } #endif } }