I’m trying to change the gui.skin to another skin but I’ve tried it for several times but it doesn’t seem to work.
When adding a new skin I don’t receive the same icon that I see with people over the internet, I’ve uploaded a screen shot of the icon I receive.
I’m very new to Unity so it’s possible that It’s just a simple mistake but I’m not sure. Is it because I’m running Unity Free?
I’ve made a script with this code :
I know that it doesn’t affect my console, but the fact that he writes to the console means that he did change the skin, I have all kinds of buttons, toggles, labels in my project but the skin isn’t applied to it…
Try setting GUI.skin = customSkin at the beginning of all of your OnGUI() methods that need to use the custom skin.
As a test, change your script to:
public GUISkin customSkin;
void OnGUI()
{
GUI.skin = customSkin;
print("customSkin setted");
GUILayout.Label("This is a label");
GUILayout.Button("This is a button");
// If you've defined custom styles, add controls for them here.
}