Hello, so I downloaded recently the latest version of Unity, but for some reason, I can’t use Time.time, or anything Time related for some reason?
The version is 2019.3.0a6, and I do have “using UnityEngine” on my script.
Hello, so I downloaded recently the latest version of Unity, but for some reason, I can’t use Time.time, or anything Time related for some reason?
The version is 2019.3.0a6, and I do have “using UnityEngine” on my script.
are you using Time.time in the update() method?
All right, I found the problem.
For some reason, if you download Unity with the Visual Studio Code package from Unity Hub, it doesn’t automatically select it as the default external script editor, yet opens it as the editor when you click a script on the workspace.
Going to Unity > Preferences > External Tools and setting Code as External Script Editor fixes the problem.