Time does not contain a definition for 'Delta Time'

I’m getting a error CS0117:‘Time’ does not contain a definition for ‘DeltaTime’

I have the 2 extensions c# and Unity Code Snippets downloaded in Visual Studio Code, but it looks like the class ‘Time’ is being loaded in.

Thank you

Hi,

Welcome to our community! :slight_smile:

C# is case-sensitive, so make sure everything is spelt correctly. The error message says that there is no DeltaTime in the Time class, which is true. The Time class contains a property called deltaTime.

Remember you can also look at the lecture code changes via the link in the Resources of each lecture.

Did this help?


See also:

Ah! a tale of a dingus and not remembering camel case!

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

Privacy & Terms