working but not vivible button?

Hi,

is there an option to use the GUI.Button but without drawing it?

I mean something Like this:

        if (GUI.Button(new Rect((0,0,128,50),"",CustomStyle_invisibleButton))
        {
            DoSomething();
        }

Hello, this code should work.

var newSkin : GUISkin;

function OnGUI ()
{
                                //Change the Buttons 2d Texture to none, so you do not see the button.
                                GUI.skin = newSkin; 
        if (GUI.Button(new Rect((0,0,128,50), "Hello"))
        {
            DoSomething();
        }   
}

ok never tried it without a texture… good this works :slight_smile: thanks!!