onejs-react 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components.tsx +4 -0
package/package.json
CHANGED
package/src/components.tsx
CHANGED
|
@@ -36,6 +36,10 @@ const _imageCache = new Map<string, any>()
|
|
|
36
36
|
|
|
37
37
|
function _resolveAssetPath(src: string): string {
|
|
38
38
|
const Path = CS.System.IO.Path
|
|
39
|
+
// Absolute paths bypass asset resolution entirely
|
|
40
|
+
if (Path.IsPathRooted(src)) {
|
|
41
|
+
return src
|
|
42
|
+
}
|
|
39
43
|
if (CS.UnityEngine.Application.isEditor) {
|
|
40
44
|
const workingDir = typeof (globalThis as any).__workingDir === "string"
|
|
41
45
|
? (globalThis as any).__workingDir
|