Using sprites as GUI

I have a sheet of interface elements that I want to use as GUI but how can I use the sprites in my code? I’ve used the sprite editor set it to multiple etc. but how can I use this in my code? when I drag them into my sprite variable it just displays the whole sheet.


Jan Julius.

You’d need a GUI manager anyway to handle multiple resolutions. So i’d recommend NGUI. It has Atlas maker where you can create an atlas from your images and use them for GUI.