mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-14 20:00:09 +00:00
修复TextMeshPro Enable时找不到XCharts路径的问题 (#160)
This commit is contained in:
@@ -39,6 +39,8 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2021.07.26) Fixed issue where `XCharts` path could not be found when `TextMeshPro Enable` (#160)
|
||||||
|
|
||||||
## v2.3.0
|
## v2.3.0
|
||||||
|
|
||||||
### Main points
|
### Main points
|
||||||
|
|||||||
@@ -39,6 +39,8 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2021.07.26) 修复`TextMeshPro Enable`时找不到`XCharts`路径的问题 (#160)
|
||||||
|
|
||||||
## v2.3.0
|
## v2.3.0
|
||||||
|
|
||||||
### 版本要点
|
### 版本要点
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ namespace XCharts
|
|||||||
// Search for potential alternative locations in the user project
|
// Search for potential alternative locations in the user project
|
||||||
string[] matchingPaths = Directory.GetDirectories(packagePath, "XCharts", SearchOption.AllDirectories);
|
string[] matchingPaths = Directory.GetDirectories(packagePath, "XCharts", SearchOption.AllDirectories);
|
||||||
string path = ValidateLocation(matchingPaths, packagePath);
|
string path = ValidateLocation(matchingPaths, packagePath);
|
||||||
if (path != null) return packagePath + path;
|
if (path != null) return Path.Combine(packagePath, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user