Hi are there any full on unityGUI examples? It would be quite cool to have an example project with a collection of dlgs and such to navagate though to give ideas of what can be done. also to show a recommended way of doing it.
Also a newbie question: Im currently trying to whip up a GUI which mainly consists of different images for every single button, in fact pretty much cutting up an image of the screen into different areas…
…should I use a single style and modify it between each GUI.Button, or should I create an individual style to use for each button, or is there some other more natural way?
Seconded… Generating GUI text boxes and labels is relatively straightforward, but a good tutorial showing all the layout “tricks” and good tutorials on using GUILayout would be awesome…
Tools like Photoshop are useful for cutting up a large image into separate button textures. If you want the complete image to be visible without seams between buttons then it might be a good idea to display it in full with GUI.DrawTexture and then set up clickable rectangles where the active areas should be. Basically, you need to use a script to check if the mouse was in a rectangle when the mouse button was clicked (you can use Rect.Contains to do this).