- Home /
 
               Question by 
               TomDanes87 · Mar 07, 2014 at 12:52 PM · 
                buttontoggletoggle button  
              
 
              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?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Sisso · Mar 07, 2014 at 12:54 PM
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.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                