Button Problem

Hello. I have a button in my scene, and when I click on it, I would like to draw a sprite over it. however any sprite is behind the button. how do i solve this?

if anyone knows how to hover in sprite, it can also solve my problem. I’m new to playcanvas.

Hi @hedgarlangner and welcome,

Have you checked the following tutorial?


It uses textures instead of sprites, but it won’t be hard to change that. And it shows exactly how to swap between graphics on hover.