Fade-In, Fade-Out 2DTexture?

Hey I would like to know how to fade in a 2D Texture then to fade it out it I know it sounds pretty simple but I dont see how it is possible with unity so please someone explain

~Steve

Have you tried using the scripting reference or the manual? maybe that has Fade-In/Fade-Out because almost all Games by Unity have Fade-In/Fade-Out Weird :eyes:.

~Steven

Yes I have checked the manual/scripting reference I didnt find anything maybe you could provide me with a Script or something that allows me to Fade my 2D Texture???

P.S. Also I would like a normal Fade-In/Fade-Out So 1 for my 2D Textures and another for gameplay

Thanks anyway Steven
~Steve

I hate to ask the obvious, but what exactly is going on in this thread? :S

You need to change to a Transparent Shader, and then you can just fade Material.color.a towards 0. If it’s a custom shader it will just need to be an alpha blended shader with a custom color multiplication.

Perhaps Stevebenz is a lonely guy. I talk to myself in my head sometimes.

Anyway, here’s a ready made script to fade in a Texture2D, wait for a few seconds or wait for user input, then fade out

thanks guys ill see if it works and sorry for the part of me talking to myself I was really bored and was waiting for quite a bit for someone to reply, thanks

~Steve

I get errors when I put in that Fade script

dont worry guys I found one thanks! Heres the link incase anyone needs it unifycommunity.com

seriously guys thanks for getting me on the right track

hmmm, what are the errors?

dont worry i got it to work, thanks guys