Skip to content

Commit

Permalink
fix for old unity versions
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtGokhan committed Nov 17, 2024
1 parent e40d65b commit 82ea07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Core/ReactContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public bool TryGetAssetFromPool(string path, out object res)
return false;
}

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

Expand Down

0 comments on commit 82ea07d

Please sign in to comment.