-
Hey guys, I'm trying to load an image in my scene, but I got nothing. scene:
actor:
What I'm doing wrong? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @salsa2k
You can either call
Let me know if this helps! |
Beta Was this translation helpful? Give feedback.
Hi @salsa2k
ex.ImageSource
needs to be loaded for it to work properly and display in theex.Sprite
. I'll make an issue to log a warning in the console about how to fix this if an unloaded image is detected, not displaying things is a rough failure mode.You can either call
this.image.load()
as needed or create a loader and load up all the resources ahead of time, here is an example of a common pattern we employLet me know if this helps!