I was able to get the Unity 2 builtin version here but it is not light enough for my project. I know I can use toggles to force the effect but I also want to set hovers and all button states to ‘button on’ for a custom style.
Alternatively, when I use a GUI.Button, I can select the style. Is there a way to call the style and the part of the style you need like
if (GUI.Button(Rect(10,10,50,50),"Hello",MyStyle_ButtonOn))
{
// do something;
}
if you look at the documentation it give you an example. Just type GUI in the docs or better yet just click on your GUI button in your code and hit the little question mark on the top. it will take you right to the page.
GUI buttons need to be in an if statement, when you hit it the statement is executed like