Hi all. I’m using this code to produce a game-over fade. I typically avoid using other people’s code, but I think I have a pretty good idea of what it’s doing line-by-line. My problem is that I have a “retry” option and can’t get rid of the overlaying texture2d so the player can continue playing. Thanks for any help offered.
Without the specifics of the copied code, you need to set the color of a Texture2D to have alpha of zero to get it to be transparent.
Figured it out. Calling Die() destroys the game object, which in this case was my camera…hence the implacable black screen.