Follow camera error: Game Object does not contain a definition for 'transform

Hello, I can’t seem to get my code to run due to an error that I don’t know how to fix. I copied the code from the video, and set the object to the reference, but my code isn’t working as expected. Code:


Hi,

Whenever you get an error message stating “‘Class’ does not contain ‘Something’”, first check the spelling of “Something”. In the majority of cases in this course, there is a little typo in the code. :slight_smile:

Did this help?


See also:

1 Like

Thanks, It happens that I spelled transform wrong (oops!).

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

Privacy & Terms