Skip to content

Commit c3322cf

Browse files
committed
[修复]1. 修复接口兼容问题
1 parent a97dbfc commit c3322cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/Utils/PathFinderHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static GObject GetUIFromPath(string path)
4545
{
4646
//GRoot / UISynthesisScene / ContentBox / ListSelect / 1990197248 / icon
4747

48-
string[] arr = path.Split('/', StringSplitOptions.RemoveEmptyEntries);
48+
string[] arr = path.Split(new char[] { '/', }, StringSplitOptions.RemoveEmptyEntries);
4949

5050
var q = new Queue<string>();
5151
foreach (string pathName in arr)
@@ -136,7 +136,7 @@ public static bool IsIncludePath(this GObject gObject, string path)
136136

137137
var q = new List<string>();
138138

139-
foreach (string pathName in path.Split('/', StringSplitOptions.RemoveEmptyEntries))
139+
foreach (string pathName in path.Split(new char[] { '/', }, StringSplitOptions.RemoveEmptyEntries))
140140
{
141141
if (pathName == "GRoot")
142142
{

0 commit comments

Comments
 (0)