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
More Posts
✅ What is the standard way of doing tests? (and can I exclude tests from a library build?)I was going to ask one question, but as I was told yesterday that I'm not following C# convention, I❔ Visual Studio debugger is trolling me & hiding errors and i have no idea why.https://www.youtube.com/watch?v=gWd6M5IQs9o Its not even consistently the same bug, sometimes delete✅ Split string on list of strings and on whathever numberHi, I need to split a string in substrings, splitting every time I find some specific strings (e.g.❔ How to populate my IGrouping with null values??So I have this way of grouping items, and I'm a little stuck. I have two classes, one is the child ❔ shorter way to export a list to a csv?Hey, i am searching for a quicker way to export a list to a csv with head than my solution under thi❔ Not able to read Entries of a zip fileHello everyone 🙂 I am trying to read a zip file in a dotnet Framework 4.7.2 Project using the cod❔ Use of unassigned local variableI'm getting an error saying "Use of unassigned local variable "Input"" I just followed a tutorial o❔ multi-line stringshi, if I have a string like ```@"this is a multi line string!"``` when my code is formatted, tabs g✅ Getting a string from a text file and get the whole line containing the stringI am making a app where I want to get the filename of a video file and then check if the filename ex❔ System.typeloadexception could not find method due to type load errorCode I am using: ```cs async void GamerMethod() { //Doing gamer things.