![]() Install Visual Studio (free Community Edition works fine), don't forget to select Game development with Unity installation option. Debugging Unity using Visual Studio (Windows) top # Setup top # If everything is setup correctly you should be able to debug scripts, use IntelliSense and code highlights. > Unity Attach Debugger and select Unity instance. Note: If clicking Run fails to attach to Unity editor, you can try going View -> Command Palette. Now click Run in VS Code, it should find active instance of Unity, attach to it, debugging starts now. If Unity editor is missing in dropdown, look for errors in log. Select Unity editor in run configurations dropdown. ![]() In Unity double click on script of interest, VS Code should open it up.Ĭlick Debug view icon on left pane in VS Code. In Unity make sure that External Script Editor is set to code. Click Restart Omnisharp from the notification that appears at the bottom-right. Open up VS Code settings via File menu -> Preferences -> Settings and search for Omnisharp: Use Global Mono and set it to always. Install C# and Debugger for Unity extensions in VS Code. Run dotnet -info and msbuild -version commands in terminal, output should be similar to the picture below (your versions might be different). Install Mono using instruction from official website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |