- Home /
Ignore timeScale when using Time.deltaTime
I want to make a fade effect on pause menu. The problem is, that when i press escape button, i set Time.timeScale = 0
, and my fade out texture doesn't fade, because I change it's alpha value with Time.deltaTime
. Is there any way around? I want to make that on every computer fade time would be the same. Thanks!
Answer by ScroodgeM · Aug 05, 2012 at 11:36 AM
use System.DateTime.Now instead. it's not affected by TimeScale 8)
Answer by Cucuchuro · Oct 20, 2015 at 11:42 PM
You can use Time.unscaledDeltaTime
I haven't found the minimum version of Unity that implements this though. I know this question was long ago, but it still appears on google when you look for it.
Your answer
Follow this Question
Related Questions
TimeScale = 0 crashes Unity 1 Answer
Math.Abs slows down on time.timescale 0 Answers
Setting fixeddeltatime depending on TimeScale makes physics behave weirdly 1 Answer
2nd independent deltaTime and timeScale variables, or a way to mimic this? 1 Answer
Game over scene when the time is up ? 2 Answers