Monobehaviour not working?

Hey Guys,

I´m currently trying to get into Unity, but I´m currently facing some problems.
I tried to start coding, just simply moving a cube on the x-axis.
I noticed that Monobehaviour has not the typical class colour on my system.
I also noticed, that functions like transform and transfer do not autocomplete like they should. (sorry for my language and bad terminology)
I use Visual Studio 2019 16.5.5 and Unity 2019.3.13f1 (64-bit).
when I import the C#-file i get an error in the unity console and am unable to start the game.
Can somebody please help me?

(Images of the code and error attached)
(I used multible spellings with lower and upercase letters)

Thank you in advance.

transfrom → transform
deltatime → deltaTime

You have to be very exacting with spelling and capitalization in programming.

1 Like

Thanks, that helped, i fixed my spelling errors. Sadly, i now have a new error:
and is there any way i can make it autocomplete? 5841802--620245--Transform Error2.PNG 5841802--620248--Transform C#2.PNG

Usually if autocomplete isn’t working I close Visual Studio and then reopen it by double clicking on the error in Unity’s console or a script in unity. When I let Unity open Visual Studio, often autocomplete comes back.

This error is again a capitalization issue. Translate should be capitalized.

1 Like

Thanks a lot! I now got it up and running. I still dont get autocomplete no matter what I do, which means that I have to focus a lot more on spelling than i would like to, but it works.

Thank you for your help

Update:
Managed to turn on autocomplete; had to assign Visual Studio to unity as an external scripter.