Skip to content

Commit 82ea07d

Browse files
committed
fix for old unity versions
1 parent e40d65b commit 82ea07d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Core/ReactContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public bool TryGetAssetFromPool(string path, out object res)
175175
return false;
176176
}
177177

178-
var paths = path.Split("/", 2);
178+
var paths = path.Split(new char[] { '/' }, 2, StringSplitOptions.RemoveEmptyEntries);
179179
Globals.TryGetValue(paths[0], out var poolObj);
180180
var pool = poolObj as IAssetPool;
181181

0 commit comments

Comments
 (0)