- Home /
Question by
Loaphs · Mar 23, 2021 at 07:49 PM ·
2dgraphics2d spritesgraphic
Button Transition - Target Graphic Error
I'm working on a game right now, and am trying to add UI. When adding a button, I want it to change to a different sprite while hovering. I've added the sprites, but I get the error "You must have a Image target to use a sprite swap transition". Does anyone know how to fix this? I've tried looking it up, but found no solutions.
target-graphic.png
(22.9 kB)
Comment
Answer by Ejlersen · Mar 23, 2021 at 09:32 PM
You need to add an Image component, which will draw your sprite.