C
C#2y ago
c_ccc

❔ FADE CANVAS GROUP (DELTATIME-UI)

smallLogoFade.alpha = 1 - Time.deltaTime * fadeSpeed;
smallLogoFade.alpha = 1 - Time.deltaTime * fadeSpeed;
(smallLogoFade is the canvas group) this is within a function called
private void mainUISpawn()
private void mainUISpawn()
im trying to make the transparency fade over time for some reason the opacity drops to 0.92 something and freezes i figured that it is because it is literally calling the last frame which is pretty consistent but now i have NO clue how to make it fade within this function
4 Replies
hiyosilver
hiyosilver2y ago
mainUISpawn sounds like something that only gets called once. That will hardly reduce opacity over time, even if you reference the last frame time that one time it gets executed.
Navi
Navi2y ago
They're also always subtracting it from 1 and not the current alpha
hiyosilver
hiyosilver2y ago
@Navi I'm blind...
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server