Texture.fromURL() no longer available #10467
-
The function Texture.fromURL() is no longer available. Is there a new way to create Texture from an URL i.e. with Assets.load etc.? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
const texture = await Assets.load(url); |
Beta Was this translation helpful? Give feedback.
-
Already tried this but didn't work unfortunately. I get following warning:
Do i need to specify the parser? cb6abca5-c6ad-4974-b95d-28f66af6fce7 is the name of the asset. What i did not mention before:
|
Beta Was this translation helpful? Give feedback.
-
I just tried different parser options and this works:
|
Beta Was this translation helpful? Give feedback.
I just tried different parser options and this works:
await Assets.load<Texture>({src: path, loadParser: 'loadTextures'});