![]() Then in the opened setting.json, search and find mnisharp.monoPath and put the path from step 2, and change the value of omnisharp. Go to Code-> Preferences -> Settings, then search mono, and click Edit in settings.json. After googled around, I found the following trick: VS Code even can't auto complete the Rigidbody2D for me. On the other hand, Awake, Start, Update and other unity callbacks are not. However it doesn't work for me, some essential features are missing, i.e. The thing is Vector3, GameObject, Destroy are all staticly typed classes or methods inside classes. Step 4: many tutorials claimed they already successfully with above three steps. I would recommend the following three extensions: Some extensions are necessary for project and coding, such as code auto compeletion, code formatting and so on. You probably see a different version 6.8.0.123 here, which doesn't matter. ![]() I also tried this: By moving the whole Start () function, autocomplete seems to work, but when moving back to the original place, it seems to stop working again. Here I would show how I installed, copy and paste the following command to your terminal: brew update & brew install monoĪfter installation, you should be able to see a path in your terminal, this is IMPORTANT, keep the path!: /usr/local/Cellar/mono/6.8.0.123 Here you can see what's going on: As you can see I get the autocomplete for GetComponent function only when I type inside the line 19. ![]() Step 2: Install the mono, someone also suggested to download from its official website from:, I tried but not successful. Net Core SDK, you can download the SDK from here: This article is the complete and most easy guide on how to config your Visual Studio Code. There are tons of articles online tells us it is 2020, we should use the Visual Studio code, which is a good coding tool (or IDE) with numerous extensions.
0 Comments
Leave a Reply. |