How to Fix Method Navigation in Unity Project Scripts Opened in Visual Stuido

The cause is that the Unity project is not associated with the Visual Studio you are using.

Just follow the steps below:

  1. Open the Unity project
  2. Select Edit –> preferences in the menu bar
  3. On the left side of the window that pops up, find and select External Tools
  4. In the right-hand pane, find External Scripts Editor and change it in the dropdown, selecting the Visual Studio version you use
  5. Close the settings window

From then on, whether you open the project from Unity or right-click the Unity project in File Explorer and open it with Visual Studio, script methods will navigate normally.