Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

OnMouseDown, OnCollisionEnter,... intellisense does not work Ubuntu 20.04

Discussion in 'Linux' started by fran_m, Oct 20, 2020.

  1. fran_m

    fran_m

    Joined:
    Jul 22, 2020
    Posts:
    40
    Hi,
    I am using Unity 2020.2b7 on Ubuntu 20.04 (actually Linux Mint 20). Intellisense works with VS Code but not works with Unity events like OnMouseDown, OnMouseDrag....
    Any idea about how to fix it?
    Thanks
     
  2. MadWatch

    MadWatch

    Joined:
    May 26, 2016
    Posts:
    112
    Intellisense will not help you with Unity events. Intellisense analyses the code to help you find what is already there. These unity events aren't there. They are merely special method names that Unity recognize and call in specific situations.

    If you want VS Code to recognize these then you have to install some Unity specific extension. I know some exist but I'm not using any and I do fine without it.
     
  3. fran_m

    fran_m

    Joined:
    Jul 22, 2020
    Posts:
    40
    And why Visual Studio on Windows works?
    Is not possible it is an assembly problem?
     
  4. MadWatch

    MadWatch

    Joined:
    May 26, 2016
    Posts:
    112
    Because Visual Studio has some specific tools for Unity and those come preinstalled if you installed VS along with Unity.



    See here.
     
  5. fran_m

    fran_m

    Joined:
    Jul 22, 2020
    Posts:
    40
    Wow thanks, I didnt know that. Do you know that Unity extension to make it work?
     
  6. fran_m

    fran_m

    Joined:
    Jul 22, 2020
    Posts:
    40
  7. MadWatch

    MadWatch

    Joined:
    May 26, 2016
    Posts:
    112
    Inside VS Code, go to the extensions marketplace and search for "Unity". You will find plenty of results.
    I didn't try any of them so I can't give you recommendations. But hopefully you will find one that suits your needs.
     
  8. RIO4

    RIO4

    Joined:
    Mar 18, 2022
    Posts:
    1