I am making a 2D game ,but a problem turn up and confuse me a lot.How to hide an object but not to destory it? I check the documents but find nothing.
Anyone can help?Thanks a lot!
Put this on the script attached to the object: renderer.enabled = false; You’ll also have to turn off any colliders on the object if it has any.
Oh,Yeath,it works!Thanks very much!