Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Different panel(s) than tutorial

Discussion in 'Code Editors & IDEs' started by SitaUberAlles, Jul 22, 2023.

  1. SitaUberAlles

    SitaUberAlles

    Joined:
    Jul 21, 2023
    Posts:
    5
    Hi

    I'm following some Youtube videos about basic Unity.
    But in Visual Studio I do not get what the video gets.

    OtherView.jpg
    This is what the video shows.

    MyView.jpg
    This is what I see. (Instantiate is not in the list I get)

    I've tried to figure it out in preferences, but not been able too :-(

    Thanks for reading
    M:)rten
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,208
    Which visual studio version is this?
    Does stuff like instantiate auto fill properly or are all Unity methods broken?
     
  3. CodeRonnie

    CodeRonnie

    Joined:
    Oct 2, 2015
    Posts:
    535
    Try deleting the closing parentheses, maybe even delete the starting parentheses and type it again. That usually works for me. Also, if you want to get the intellisense auto complete suggestions out of the way, (the lower menu in both images), just press escape, and then you can use the up and down arrows to look through the method group at all of the versions of that method that take different arguments. If you don't press escape the up and down arrows move through the auto complete suggestions.
     
  4. SitaUberAlles

    SitaUberAlles

    Joined:
    Jul 21, 2023
    Posts:
    5
    The one in the video seems to be 2019 on mac.
    Mine is 2022.
    There's some differences. I do get some autofill suggestions, but not as much as he does in the video.
    I don't get all the coloring either, just some of it.
     
  5. SitaUberAlles

    SitaUberAlles

    Joined:
    Jul 21, 2023
    Posts:
    5
    I will try that, thanks.
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,381
    This is called Intellisense (and syntax highlighting). It can:

    - not work at all
    - work only for some assemblies
    - work for all the assemblies you need

    Here's my notes for grabbing it by the collar and roughing it up a bit, show it who is boss:

    This may help you with intellisense and possibly other Visual Studio integration problems:

    Sometimes the fix is as simple as doing Assets -> Open C# Project from Unity. Other times it requires more.

    Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.

    Barring all that, move on to other ideas:

    https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599/

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

    Update: The VSC extension has been deprecated.

    https://forum.unity.com/threads/update-on-the-visual-studio-code-package.1302621/

    There is a community fork available that is receiving updates.

    https://github.com/Chizaruu/com.tsk.ide.vscode

    Also, this: https://forum.unity.com/threads/no-suggestions-in-vscode.955197/#post-6227874
     
    SitaUberAlles likes this.
  7. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,208
    I think Unity is not linked. Did you set VS2022 as the code editor in preferences - external tools?
     
    SitaUberAlles likes this.
  8. SitaUberAlles

    SitaUberAlles

    Joined:
    Jul 21, 2023
    Posts:
    5
    Thank you for a lengthy and good answer.
    I've tried everything, and still it just doesn't work. (It did something, I suddenly got an error-checker that suggested solutions, but not what I asked for).
    So in the end I just tried to download v2019 of Visual Studio and that did the trick.
    atm I don't believe I will be so advanced that I need a 2022 version, so I'll stick to the 2019 for now.
    Again, thank you. Much appreciated.
     
  9. SitaUberAlles

    SitaUberAlles

    Joined:
    Jul 21, 2023
    Posts:
    5
    Yep.
     
  10. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,698
    Can you link to the video?