- Home /
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?
Comment
Best Answer
Answer by JohnnySunshine · Nov 12, 2013 at 05:21 PM
You can pass a texture to GUIContent:
GUI.Button(new Rect(), new GUIContent("Button text", myTexture), "YourStyle");
Your answer
Follow this Question
Related Questions
I have created a button with photoshop and i need to use it in my menu 2 Answers
Howto save ProceduralTexture as PNG 2 Answers
GUI Texture on Button Swap 3 Answers
Creating a component from a button click 1 Answer
useing WWW Class 1 Answer