Hi Peeps,
So i’ve coded my gameobject to destroy after clicking on it, how would I add GUI text to show after it has destroyed?
Im a coding noobs and this is why I am asking.
Many Thanks
Hi Peeps,
So i’ve coded my gameobject to destroy after clicking on it, how would I add GUI text to show after it has destroyed?
Im a coding noobs and this is why I am asking.
Many Thanks
Assuming the text is going to be displayed briefly (like points for hitting a target), the easiest thing to do is to hide the game object and delay destroying it. In addition to the search terms @fattie suggests, look in the reference for renderer.enabled to hide a game object and the optional second parameter for the Destroy() function for delaying the destory.