Question by 
               Lightblood7 · Jan 13, 2016 at 12:54 PM · 
                guitogglecolor changescene loadhighlight  
              
 
              How do you keep a toggle highlighted/ load up a scene with the toggle in its highlighted state
Im creating a options page with a group toggle, using GUI text as the toggles. when the text.toggle is selected, the highlighted colour set in the toggle is shown, e.g dark green when toggle is false, and light green when toggle is true.
The issue i have, is when you go onto the load up the scene with these toggles, all of them are in their default states (the colour of the toggles all show as if non of them have been ticked) even tho one of them is true.
I probably explain it badly here, but basically, how can I make the toggle which is true, highlighted on at the start of a scene?
thank you for your time.
               Comment
              
 
               
              Answer by adamspcajati · Feb 14, 2016 at 08:06 AM
You need check this in Update() function
 void Update()
     {
         if(Your condition)
         {
             toggleButton.isOn = false;
         }
         else
         {
             toggleButton.isOn = true;
         }
 
     }
Work for me ;)
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                