trouble with auto-replacing in a C# script.

I am completely new to scripting. practicing on my free time.

When I keep typing in, for example, public Vector3 targetPosition;

It will auto correct Vector3,with BitVector32

Also, Vector3 doesn’t highlight light blue when imputed.

This is frustrating for productivity and learning sense I have to constantly correct this.

Which editor are you using? It sounds like it’s not properly linked up with Unity. If you’re using Visual Studio this may help: Intellisense Not Working with Visual Studio (Fix)

1 Like

Thanks for the quick reply.

I know it is the most up to date version of visual studios, but don’t know the specifics.

I’ll update this when I get home with what version of Visual Studio I’m using and if the fix you posted works, seems to be in the right direction. :slight_smile:

If it doesn’t work, this usually does:

  • Shut down Visual Studio
  • Shut down Unity
  • Delete the “Library” folder inside your project. Don’t worry, Unity will regenerate everything inside that folder
  • Start Unity back up again and double click one of your scripts
1 Like

dumb question, but did you remove the import of the namespace from the top of your script ?

using UnityEngine;

1 Like

All the posts above are great investigations to try, and hopefully they will resolve this issue.

If they do not fix things for you, here are some more resources:

Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button

Also, this: No suggestions in Vscode

1 Like