i’m trying to use a GUI skin with C#, here is what I have…
public GUISkin LiveWalkthroughSkin;
public void OnGUI ()
{
if (showMenu)
{
windowRect = GUILayout.Window (0, windowRect, WindowFunction, "Menu");
}
}
public void WindowFunction (int windowID)
{
GUI.skin = LiveWalkthroughSkin;
GUILayout.BeginVertical("Visibility", GUI.skin.GetStyle("box"));
GUILayout.Space(10);
...
I cannot get any properties I assigned through the inspector to work. I have defined a text color for “box” that i’m using in BeginVertical. What am I doing wrong? Thanks.