Hi,
I would like ot know how to copy a GUIStyle using JavaScript.
In C# it is like this: GUIStyle Label2 = new GUIStyle(GlobalGUISkin.GetStyle("label"));
But I ma not able ot do it in JavaScript.
Thak you in advance
Hi,
I would like ot know how to copy a GUIStyle using JavaScript.
In C# it is like this: GUIStyle Label2 = new GUIStyle(GlobalGUISkin.GetStyle("label"));
But I ma not able ot do it in JavaScript.
Thak you in advance
in javascript the syntax would be:
var Label2:GUIStyle = new GUIStyle(GlobalGUISkin.GetStyle("label"));
This worked for me:
GUIStyle newStyle = new GUIStyle(GUI.skin.GetStyle("button"));