7.6 – Changing gui skin at runtime

In iGUI you can change gui skin at runtime. Create a scene and add a button with variableName button1. Add a public GUISkin field to iGUICode and drop the new skin to iGUI Root in inspector. When you click button1, all elements in the scene will switch to the new skin.

public GUISkin newSkin;

public void button1_Click(iGUIButton caller){
    root1.setSkin(newSkin);
}
var newSkin : GUISkin;

function button1_Click(caller : iGUIButton){
    root1.setSkin(newSkin);
}