Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

why isn't Monobehaviour blue

Discussion in 'Getting Started' started by Rc_1203, Jul 7, 2023.

  1. Rc_1203

    Rc_1203

    Joined:
    Jul 7, 2023
    Posts:
    6
    Hey I'm pretty new here and I encountered a problem my Monobehaviour is not blue when I'm in Microsoft visual studio I already tried changing versions in preferences but it still doesn't work does anyone know how to help me?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    As in intellisense doesn't pick it up?

    Steps to take:
    1. Update unity
    2. Update visual studio (2022 ftw)
    3. Go into preferences - external tools and regenerate project files
    4. If that doesn't fix it delete the sln and csproj files and library folder to reimport everything
     
  3. Rc_1203

    Rc_1203

    Joined:
    Jul 7, 2023
    Posts:
    6
    Thanks I'm looking into it is Unity 2022.3.4f1 the newest?
     
  4. Rc_1203

    Rc_1203

    Joined:
    Jul 7, 2023
    Posts:
    6
    Hey I tied everything I deleted evry csproj and solution file and the library and after I went back in Visual studio and Monobehaviour still wasn't blue I did evrything you told me to but it still didn't work and I don't know how and why
     
  5. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    Do other intellisense features work?
    Maybe reset al VS changes
     
  6. Rc_1203

    Rc_1203

    Joined:
    Jul 7, 2023
    Posts:
    6
    I have already deleted everything and it didn't work.I dont know why and how since I didn't change anything in Unity I just added a C# script and I didn't change anything in visual studio 2022
     
  7. Rc_1203

    Rc_1203

    Joined:
    Jul 7, 2023
    Posts:
    6
    oh I found the issue (it was really dump) thanks for the help anyways
     
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    Do share the fix if others haven't found the solution yet
     
  9. Rc_1203

    Rc_1203

    Joined:
    Jul 7, 2023
    Posts:
    6
    Yeah my Visual space didn't install the update where you can use unity with