Time.deltaTime doesn't compile with unity

While following the course added the multiplication by Time.deltaTime and Unity doesn’t recognise my code.


When the script goes into Unity it shows me this error message. I’m just a beginner so this makes me feel helpless :frowning:

Also maybe this problem occurs because of some installation mistake, because the teacher in the course has additional code snippets popping up while he writes the code, but for me - they just don’t appear. So maybe VS Code doesn’t have these functions/methods that are used in the course?

remove the * that appears at the top of your file. It’s not valid code, so Unity will not compile this script

1 Like

Thanks. I feel embarrassed now haha.

Don’t be. It’s easy to miss

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms