GUI.skin - C#

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.

Maybe use the custom styles and eather use it via yourskin.customstyles[0] for first one or type the names. Normally it should work without problems

GUI.skin = LiveWalkthroughSkin should be inside OnGUI(), try that. If that doesn’t work then try and make a custom style like slyripper suggested.