diff --git a/Packages/com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs b/Packages/com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs index 6674cf6..55501a4 100644 --- a/Packages/com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs +++ b/Packages/com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs @@ -42,7 +42,7 @@ private static void OnProjectWindowItemGUI(string guid, Rect r) { var path = AssetDatabase.GUIDToAssetPath(guid); - if (string.IsNullOrEmpty(path)) + if (string.IsNullOrEmpty(path) || !File.Exists(path)) return; var attributes = File.GetAttributes(path); var nr = IMGUIUtility.CalculateRectAfterLabelText(r, path, true); @@ -253,7 +253,7 @@ private static void ExecuteBashCommand(string command) } } } - + private enum SymlinkType { Junction,