- Home /
 
 
               Question by 
               $$anonymous$$ · Sep 29, 2012 at 07:21 AM · 
                guitexturevariable  
              
 
              Display GUI texture on specific variable value?
I want a GUItexture to appear when objectColor == a number but i don't know the display on GUI script. This is javascript and i have the textures i want saved in my asset folder. I need to know how to access them and display them on the screen at a certain position. This is the script i have controlling the value of the variable.
  if (Input.GetButtonDown(">"))
             objectColor = objectColor + 1;
  if (Input.GetButtonDown("<"))
             objectColor = objectColor - 1;
         if (objectColor >= 2)
             objectColor = 2;
         if (objectColor <= -2)
             objectColor = -2;
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Texture's Alpha is not Transparent when I use it as a GUI.label 1 Answer
GUI Variable Declaration problem 0 Answers
GUI Texture Positioning Help 1 Answer
GUItexture change on mouseenter 3 Answers