- Home /
Fade Object left to right
I need to fade object left to right. With matarial.color.a i can fade object but the whole part of the object is fading. I want the object is not visible at the beginning then becoming visible toward right
Without using a specific shader or a mask texture it's gonna be complicated. Do You have basis in shader lab ?
No i don't, can't i do this if i don't?, isn't there a script just for doing this
Answer by Griffo · Nov 03, 2012 at 12:11 PM
Couldn't you swap the texture to a gradient texture (off white to transparent, left to right) just before fading then fade the game object with something like.
renderer.material.color.a -= 0.1 * Time.deltaTime * 4;
That might make it look as it's fading from left to right.
Your answer
Follow this Question
Related Questions
Fading an object via script 1 Answer
Fade between group of object 1 Answer
Finding point of mesh visible by another game object 1 Answer
Making 3D Objects invisible 1 Answer
Object Fade at distance 0 Answers