Просмотр исходного кода

Update LogRedirection.cs (#505)

误删了拼接路径的代码
sunset 2 лет назад
Родитель
Сommit
0ece287368
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Unity/Assets/Scripts/Editor/LogRedirection/LogRedirection.cs

+ 1 - 0
Unity/Assets/Scripts/Editor/LogRedirection/LogRedirection.cs

@@ -39,6 +39,7 @@ namespace ET
                         // 行号
                         line = Convert.ToInt32(pathLine.Substring(splitIndex + 1));
                         var fullPath = UnityEngine.Application.dataPath.Substring(0, UnityEngine.Application.dataPath.LastIndexOf("Assets", StringComparison.Ordinal));
+                        fullPath = $"{fullPath}{path}";
 #if UNITY_STANDALONE_WIN
                         fullPath = fullPath.Replace('/', '\\');
 #endif