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

472
Visualizações
How to view Unity method implementations in VSCode "Jump To Definition"?

I have a friend using JetBrains Rider and when he uses Jump To Definition (F12) he can see the method signature and implementation! I tried installing Rider but it is not yet supported on my ARM64 Mac. Is there anyway I can view Unity method implementations using VSCode or VSCode Insiders?

For example, if I have the following call, I click Translate

transform.Translate(Vector3.forward * Time.deltaTime * zSpeed);

Then I press F12, which opens Transform.cs but only shows the method headers. The implementations are missing

// Summary:
//     Moves the transform by x along the x axis, y along the y axis, and z along the
//     z axis.
//
// Parameters:
//   x:
//
//   y:
//
//   z:
//
//   relativeTo:
public void Translate(float x, float y, float z);

// comments removed for brevity...
public void Translate(float x, float y, float z, [DefaultValue("Space.Self")] Space relativeTo);

// comments removed for brevity...
public void Translate(Vector3 translation);

// comments removed for brevity...
public void Translate(Vector3 translation, [DefaultValue("Space.Self")] Space relativeTo);

// comments removed for brevity...
public void Translate(float x, float y, float z, Transform relativeTo);

// comments removed for brevity...
public void Translate(Vector3 translation, Transform relativeTo);

Any help is greatly appreciated!


Per a comment, I tried Cmd+F12

cmd-f12

But then it says "no implementation found"

no-implementation

I'm stuck!

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

0

I enabled the following options in my C# plugin for VSCode. Thanks for the pointer, Karl-Johan Sjögren.

csharp extension settings

decompilation roslyn analyzers

Now when I press F12 on transform.Rotate(Vector.forward) for example, decompilation support allows me to see

transform.Rotation

This is very beneficial and helps me understand the how Unity handles rotations in different spaces. Also I can begin to understand complex Quaternion.Euler knowing how the familiar translate.Rotate uses it internally. The same is true for things like transform.Translate

transform.Translate

For example, if I didn't know I could directly manipulate position before, now I know transform.Translate is a means of doing just that. Being able to get this information at the click of a single button is a game-changer when you compare it to the alternative of alt-tabbing to your browser and doing a text-based search, spending minutes navigating to a specific section of code.

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