Script doesn't work like in the tutorial?

I’ve downloaded the dotnet, tried to troubleshoot it myself but i can’t seem to figure out how to make it work.
Ive attached some photos and maybe someone can help.
If i dont reply immediately, its midnight here and im off to sleep.
Hopefully someone can help me solve this by morning so i can get back to coding.
Thanks :slight_smile:


image

image

I’m dumb, i forgot to put ProcessInput() in the void Update().
Still, could someone help me get rid of the .NET Core SDK error? Thanks a bunch
image

Hi,

Please check the console of VS Code (not Unity!). If the .NET Framework 4.7.1 (Developer Pack) is mentioned there, download and install it from the official Microsoft. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471

Did fix the issue?


See also:

I’ve installed the .NET 4.7.1 dev pack but I still get the same message on start-up

And also i’m not getting the autocomplete suggestions like Rick is in the tutorials, is there a fix for that? Is it a setting that’s accidently disabled?

Usually, IntelliSense should work automatically.

Is Visual Studio selected as your External Script Editor in Unity (Edit > Preferences > External Tools)?

Is the Visual Studio Code Editor package installed in Window > Package Manager (in Unity)?


If nothing helped, install and use Visual Studio (Community Edition). For some students, VS Code simply does not work well. Maybe due to a problem with Unity, some update or whatever.

  1. Download VS and follow this instruction.
  2. Select VS as your External Script Editor in Unity (Edit > Preferences > External Tools).
  3. Install the “Visual Studio Editor” package in the Package Manager.

That should work.

Thank you!
I’ve switched to using Visual Studio Community (2022) and have had no problems since.
Thanks again, and hope you have a great day.

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

Privacy & Terms