Error in all my scripts; 'Time' does not contain a definition for 'deltaTime'

One of my student is getting multiple errors in his scripts
‘Time’ does not contain a definition for ‘deltaTime’

We have re-installed and upgraded the Unity Editor (running 2020.3… LTS)

any ideas or work arounds?

I would firstly make sure they haven’t made another script called Time in their project.

2 Likes

Doh!

I’m current working remotely with these students (I’m currently 3 states away) and he sends me a copy of a blank’ish script.
Funny enough, it has a public class called Time.

Easy fix at least!

And now you get to teach them about the importance of not naming their classes the same as Unity’s classes.

3 Likes

And as a bonus, namespaces ;).

1 Like