Yeah something like that but the thing is, I want the button to open a new level and when pressed it fades out and takes you to the level, is it possible?
Firstly; your scenes/levels are number-indexedrather then by name.
Secondly; afaik only in unity pro its possible to create something like an actual loading screen. In indie scene switching is performed with the last image visible i believe.
Firstly; your scenes/levels are number-indexedrather then by name.
Secondly; afaik only in unity pro its possible to create something like an actual loading screen. In indie scene switching is performed with the last image visible i believe.
Ehm. I may be wrong, but i think something in your logical ‘order’ is thought up wrong
Am i correct to assume that when you click the button you want to blend your screen to the fadetexture?
Then it’s correct you’re starting with alpha 0,
But i don’t see the point why you’re inversing your math (both the fadeDir and the formula being in negative)
However, this would mean the fade is complete when alpha>=1
Ill take a more thorough work later, but maybe it leads you somewhere
You clamp the alpha value from 0 to 1, that said alpha will never be < 0.
Also i noticed that your alpha value is incrementing so you should check for alpha >= 1.