- Home /
How can I put two GUISkins on two different buttons in one script?
I have two buttons, each for class selection and I want to know how could I use 2 different GUISkins in the same script for each button. I already have the models for the buttons made up, I just can't seem to figure this out. Every time I try, both buttons have the same skin instead of different ones. Is there a way to do this?
Answer by SkaredCreations · Dec 18, 2014 at 02:06 AM
Change GUI.skin before your second GUI.Button
By the way, is there a particular reason you're using 2 different skins instead of two different styles in the same skin? It seems odd since you can have as many styles as you need in one skin.
If I can have as many styles as I need, how do you add multiple styles to different buttons from that one skin?
Your answer
![](https://koobas.hobune.stream/wayback/20220613174310im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
GUISkin & Scripting 2 Answers
How to attach GUI Skin on button? 0 Answers
GuiSkin - Creating a 2nd button? 1 Answer
GUIContent renders button elements different from intended 0 Answers