Best way to use a sprite sheet image in Nifty?

What’s the best way to use an image, selected programmatically, from a sprite sheet as a Nifty GUI image (or background image)?

You just need to set the imageMode property to select which part of the sprite you want to display. The nifty manual gives more details. Is there something more specific you are trying to do?


That’s exactly what I was looking for. Somehow I completely missed that when I read the manual.