0
votes

I'm very new to programming and want to get into game development.

I just downloaded Unity and Rider on my mac, when installing the latter i installed all suggested plugins associated with Unity and c#. When i created my first script in Unity and opened it with Rider, i saw that it won't highlight any syntax errors. Scripts work fine in Unity if i write them correctly, but i want to be able to see suggestions and error highlighting from the IDE. As you can see from the screenshot, i wrote some gibberish and it won't highlight any errors

Power saving mode is off, highlighting level is set to max.

2
You merely opened a file in Rider, but not from a project. I doubt any IDE will be able to show errors in that way, as without a project it cannot compile and check errors. See "opens your Unity project" in blog.jetbrains.com/dotnet/2017/08/30/…Lex Li
It turns out, i had to manually set Rider as external script editor in unity preferences, thank you everybody for your answers, it worked.Buck

2 Answers

0
votes

set ide in unity preferences -> external tools -> external script editor

https://docs.unity3d.com/Manual/ScriptingToolsIDEs.html

0
votes

For Unity 2019.2+ make sure:

  1. You have recent version of Rider package in Unity
  2. External Editor in Unity is Rider

Call Assets->Open C# project in Unity, it should open project in Rider.