- Home /
On Click GUI texture
Hiya,
Sorry I'm new to Unity and very new to scripting, at the moment most of the scripts im using are learnt through youtube etc..
Basically i am making a Health and safety simulation where you walk around a building site and identify various hazards. At the moment i have various little animations / objects scattered around, and am using a box collider around them to detect a trigger(Player). When the player enters the collider, a point is added to a counter and a GUI texture pops up explaining what is wrong with the object.
I want to make it so that the GUI texture only pops up when the object is clicked. When the GUI pops up i wanted to have it on screen for around 5-10 seconds with the game paused in the background.
I've looked at various different answers on this forum but when i try to change and apply the scripts to my project i cant get it to work.
Any help would be greatly appreciated :)