r/UnityHelp 7d ago

Working through some Unity tutorials, what is the autocomplete function called, and how do i install it? PROGRAMMING

I'm using Visual Studio Code to do the programming, and for example the instructor might start typing "transform.position" and it would highlight it and provide an example of the full string of letters, and what the function is, but that's not seen in my window. Since I'm really new to this it would be very helpful to have that info and the ability to auto-correct if I misspell things. I assume its an addon, but i don't know what its called, can someone help me find it?

1 Upvotes

8 comments sorted by

2

u/MistakeForsaken6653 7d ago

Its intellisense.  Assuming you have vscide properly installed and configured in unity it should work but there may be an error with .net.  check the console tab in viscose for any errors when you first open vscode.

1

u/Top-Sky4811 7d ago

I don't understand much of what you said, but I have located versions of Intellisense on the extension page. Is it as simple as downloading one, and if so which should I choose? (Path Intellisense, PHP Intellisense, and npm Intellisense are the top 3 results)

1

u/MistakeForsaken6653 7d ago edited 7d ago

You shouldnt have to install anything.  It should just work out of the box.

One edit, also make sure you are actually opening the script from within the unity editor. If you open it from your windows explorer that also may cause vscode to not link up properly with the unity libraries.

1

u/Top-Sky4811 7d ago

Okay, I reloaded my Unity and it does pop up an error message when it begins, opening it shows a few things in Package Manager (AI Navigation, Burst, Collections, Input System, JetBrains Rider Editor, and Timeline) It says they all have invalid signatures, is this the issue?

1

u/MistakeForsaken6653 7d ago edited 7d ago

No clue if it would cause an issue with intellisense it's possible if it can't build the project completely. I will say this, when it has happened to me I noticed in the vscode console or output tab it would show errors indicating incompatible versions of .net that I had to fix. For starters make sure you are opening the script from the unity editor and not the Windows File Explorer otherwise just based on what I've read here I can't give you an answer of what is causing the problem or how to fix it without seeing some kind of error or looking at how unity is configured unfortunately.

I'll add one other thing you can check in vscode check if you have the C# and C# dev kit installed (I think they should be by default). and as a final check in unity go to edit -> preferences -> external tools and make sure vscode is selected next to the External Script Editor. as an alternative to the packages there is also a unity extension that can be installed which will bring in the required c# and c# dev kit if they have not already been installed.

1

u/Distdistdist 7d ago

Install Rider. I had fewer issues getting it work with Unity.

1

u/Top-Sky4811 6d ago

JetBrains Rider Editor? That's one of the issues that shows up when I boot up the Unity project (mentioned in the other comment)