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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

"The script needs to derive from MonoBehaviour"

Discussion in 'Editor & General Support' started by santi5178, Apr 3, 2020.

  1. santi5178

    santi5178

    Joined:
    Mar 28, 2020
    Posts:
    1
    Hi,
    I am getting this error in a new project When I try to add a
    component to the main camara. And if I create a new component the "public"
    variables I declare dosen`t appear in the inspector.
     

    Attached Files:

  2. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    1,042
    There are other compile errors, this is visible at the bottom of the screen. Fix those first, and it should work.
     
  3. tarod-net

    tarod-net

    Joined:
    May 29, 2015
    Posts:
    8
    I came here looking for a solution. Finally, I solved this problem using the Help menu and then Reset Packages to defaults.