- Home /
How to clear textures on screen?
Hi! I want to clear all of textures on screen when my car crashed the barrier. For example; I want to delete "Time left" texture on the image. But I want to that game over screen will continue to appear. How do I make this?
screenshot_4.png
(281.2 kB)
Comment
Answer by Klarax · Dec 11, 2014 at 12:47 PM
i assume that code to show the time etc is in OnGUI.
So just put a bool around it and set it to false when collided.
void OnGUI()
{
if(show == true)
{
gui label and stuff
}
}
Your answer
Follow this Question
Related Questions
GUI Label Text Sizing problem 1 Answer
OnGui doesn't work 2 Answers
GUI Text to GUI Label Script? 1 Answer
Adding line breaks when the text is bigger? 1 Answer
GUILabel to GUIText or Textmesh 0 Answers