Search Unity

Resolved Rider and VS missing MonoBehaviour dependency

Discussion in 'Scripting' started by AlanMattano, Oct 19, 2020.

  1. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    upload_2020-10-19_11-30-37.png

    Editor: Visual Studio
    MonoBehaviour is marked in red as if not connected.
    I do not know how to deal with this issue
    Since Rider is not opening, Can be that Rider is interfering?

    Environment: Unity 2020.2.0b7, Windows 10, Visual Studio 2019 Versión 16.7.6

    SOLUTION
    Reimport All

    In the "Project" window tab right-click and select "Reimport All" (CAUTION READ DOCUMENTATION)
    That solves my issue. My project was small and handles well this feature.

    View attachment 719741
     
    Last edited: Oct 19, 2020
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,188
    Do you have any compile time errors showing in the console? If you run into one of those, that can keep stuff from compiling all the way. If you don't see errors in the console to start, trying to build can also toss some errors that give you a direction to go.

    As far as Rider, make sure the rider package is installed in the package manager and that you've selected it in your preferences as your editor choice. Also, try opening it on it's own. Does it open? Does it prompt you for anything?

    I doubt there is interference.
     
  3. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    No.
    If. My program is correct, runs correct and there are correct console warnings.No compile errors


    I was using Rider and since was not starting, switch to VS. I take off all Rider from the package manager. There is only "VS Editor" and "VS code editor" packages.

    I give all firewall permissions to this latest Unity 2020.2.0b7
    Unity 2017, Unity 2019 are working fine.
    Looks like a project setup problem
     
    Last edited: Oct 19, 2020
  4. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    SOLUTION
    Reimport All

    In the "Project" window tab right-click and select "Reimport All" (CAUTION READ DOCUMENTATION)
    That solves my issue. My project was small and handles well this feature.

    ReimportAll Unity.jpg
     
    Last edited: Oct 19, 2020