Change button icon for each without multiple GUISkins

Say i have 10 “GUI.Button” 's, how do i change the look/icon for each button without changing the GuiSkin every time? Is there some sort of C# script line i can use?

1 Answer

1

You can pass a texture to GUIContent:

GUI.Button(new Rect(), new GUIContent("Button text", myTexture), "YourStyle");

thank you very much