- Home /
Does Destroy(Object obj, float time) use scaled or unscaled time?
Does Object.Destroy use scaled time or real time if the second argument is given?
Just test it out and see how long it takes to find out. $$anonymous$$y guess would be real time as all $$anonymous$$e seem to take real time seconds.
Answer by tormentoarmagedoom · Jun 12, 2018 at 07:25 AM
Good day.
Unity uses Time to control some functions, like Destroy. Time.Scale determinates the relation between real time and time inside Unity. By default, Time.Scale = 1 , so time is equal to real time. But you can change it if you want.
So if you dont change Time.Scale, time will be same as real time.
If you change TIme.Scale = 2
Time in Unity will be double fast as real time, etc...
Bye.
Your answer
Follow this Question
Related Questions
Placing object with ray cast 3 Answers
GetAxisRaw() Ignoring Second Item 1 Answer