Is there a way to add a sprite to a button?

Thanks! About 10 seconds of one of the demo videos for these showed me how to do it. It’s rally hard to control the animation speed, but it does at least animate!

Assign an image to your button.
Assign a material to the image : brush → image.
Set Material to User Interface and Masked.
Create a texture sample and find your sprite sheet and apply.
right click and find flip book node and then add a constant to the number of rows and columns (dependent on your price sheet)
Attach UV’s out of the flip book to the UV’s in on the texture sample.

There appears to be limited control over the timing of the animation, mine currently plays at light speed, if anyone works out how to affect this without just making the animation look awful let me know. (you can apply a frac to the animation phase to control it, it is a little clunky though)

If you want there to be any type of masking you will need to create an alpha channel in an image editing software and save the image as a 32bit Targa.

I haven’t tested this but seems like it should work with all of the widget items. I am also not sure what damage this does to the overhead in terms of slowing the game down. So I would use for effect as opposed to for everything all the time.

Happy Animating!

Hi,

So I want to have a button that animates, so I would really love to just be able to drop a sprite in to a widget, or on to a button but for the life of me I can’t see a way.

So does that mean there is no way to do this, or there is a way and I have not seen it? If there is a way can you direct me on how to make that happen?

Thanks

I think it must be a bit of a fiddle, otherwise you wouldn’t get plugins: