Relative Content

Tag Archive for c#unity-game-enginegame-developmentunity-components

why is my object still visible when alpha is 0 but only sometimes

I’m trying to make a bunch of objects fade and move to create a UI that moves into place.
when I start my code with the alpha value at 0 and run the code the alpha value returns to 0 but the object is still visible but instead of being white its very transparent but black but if I start the code with alpha set to 1 it becomes completely transparent even when running it multiple times consecutively. I don’t understand why its doing this or how due to the fact that the alpha is 0 at the end and it works when repeating when started with alpha set to 1