GUI.Button Toggling Error

Hello,

I am trying to toggle game objects visibility via

GUI Button.,20), toggleBool, “turn on/off”);

And I get the following error:

**No appropriate version of 'UnityEngine.GUI.Button' for the argument list '(UnityEngine.Rect, boolean, String)' was found.**

Ideas anybody?

There is no method GUI.Button that support arguments of type ‘(UnityEngine.Rect, boolean, String)’. Take a double look in docs which methods GUI have and which params exactly it require.