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

Script No Longer Shows in Inspector

Discussion in 'General Discussion' started by Ogien, Feb 12, 2021.

  1. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    I am freaking out here, I just upgraded from 2019.2 to 2019 LTS and I no longer see one of my scripts (The most important one) in the Inspector. It's still there because the game still works, but I can't edit any of the inspector settings. Please help, I can't work on my game until I figure this out.
     
  2. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    I also can't add my script to the GameObject again if I wanted to, it does not even come up in the Add Component search box (there are no compile errors)
     
  3. Ogien

    Ogien

    Joined:
    Nov 21, 2012
    Posts:
    165
    Nm I fixed it, I had [AddComponentMenu("Splines/Spline Controller")] just above [Serializable] that seemed to through it off for some reason. Commenting out [AddComponentMenu("Splines/Spline Controller")] solved it.