Gui.Button Border Goes Away With GuiStyle

This is my first foray into the Unity GUI, so please excuse my ignorance.

I created a button in the OnGUI() event and it worked fine.
I created a public GuiStyle and assigned it to my button.
I set the font to Arial of a certain size, as well as other options.

Now when I run the program the button font and size appears correct.
However, the borders are gone, there’s no background to the button (it’s totally transparent), and it ignores the hover color.
I tried setting the border values in the GuiStyle and that did nothing.

Can someone tell me what I’m doing wrong?

Thanks.

Try setting the style’s OnHover and Hover. Both are used in different situations. Likewise for all XXX and OnXXX. To inherit the default button’s images, create your button as a copy of the default button:

GUIStyle myGuiStyle = new GUIStyle(GUI.skin.button);

Instead of:

GUIStyle myGuiStyle = new GUIStyle();

Or you can download the default skin textures from this thread and assign them manually.