Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

462
Visualizações
Unity Scripts edited in Visual studio don't provide autocomplete on certain lines

When I edit the C# Unity Scripts, they open in Visual Studio. I've noticed that the autocomplete works on some lines but it doesn't in others.

Here you can see what's going on:

Moving image showing the issue

As you can see I get the autocomplete for GetComponent function only when I type inside the line 19.

I also tried this:

Additional picture that describes the issue

By moving the whole Start() function, autocomplete seems to work, but when moving back to the original place, it seems to stop working again.

By further testing, I noticed that autocomplete does not work on lines 11 through 14 and works on any other line.

I tried updating Visual Studio, deleting and recreating the C# Script, regenerated the project files and even reimporting all assets. Nothing worked.

Unity Version: 2020.2.7f1 Visual studio: 8.9.2 OS: macOS 11.2.3

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Hm, that's strange. Try to go into the unity editor, go to edit/preferences/external Tools and select the VisualStudio version you are using as the external script-editor.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda