i understand GUIskin but not GUIstyle. Where can i see some example script with this? I want to create custom buttons, that is it. I checked out this movie file but screen size it is too small to see it. http://vimeo.com/channels/ncsuunity#6067691 thanks, fundi
They are quite simple to work with. Simply define it as you would any other variable you expose for the inspector. Code (csharp): var myButtonStyle : GUIStyle; Change the attributes as you wish for you new button in the inspector, then reference that style for your button in code where applicable. Code (csharp): GUILayout.Button("Press: ", myButtonStyle );
Defining the placement of a button isn't quite connected to a GUIStyle definition. If you're looking for information at that basic of a level then check out the following video. http://unity3d.com/support/resources/unite-presentations/in-game-gui-made-easy Then move on to the documentation. http://unity3d.com/support/documentation/Components/GUI Scripting Guide.html
I found this thread helpful but the first video link in the above post is outdated and was not easy to track down. Here it is for anyone else looking for it: http://video.unity3d.com/video/3272739/unite-07-in-game-gui-made