skip to Main Content

I am trying to learn Unity3d game development and would really appreciate some help here…

My issue is VS Code is not suggesting keywords like rigid, Vector3, Transform, Physics, LayerMask, if i type Transform, it highlights other suggestions such as OnTransformChildrenChanged() or OnTransformParentChanged() but not the Transform.

Any Help is appreciatedenter image description here

just downloaded Visual Studio Code and the extensions needed to work with Unity3d.

I also have Unity3d’s code editor set to Visual Studio Code via Preferences -> External Tools -> External Tool Editor.

Tried Reimport All, opening code from unity, Assets>open C# Project.

installed .net 4.7.1 and the new versions too.

I have watched multiple tutorials and downloaded multiple extensions for unity tools in VSCode.

still no fix to the Intellisense.

2

Answers


  1. I have followed this doc and it works well.
    https://code.visualstudio.com/docs/other/unity.
    You might have missed this step:

    enter image description here

    Login or Signup to reply.
  2. make sure to install Visual Studio Code Editor in Package Manager.
    Go to Unity Registry and type " Visual Studio Code Editor" and install it or update it
    Worked for me because for some reason Unity deleted my vs code Editor.

    and I after doing this go to Edit > Preferences > External Tools > External Script Editor > Visual Studio Code

    then click on one of the scripts in the project and you are good to go!

    if you still have problems please tell me or check this link https://code.visualstudio.com/docs/other/unity

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search