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

Unity does not find the class monobehaviour

Discussion in 'Scripting' started by Bolt, Nov 11, 2015.

  1. Bolt

    Bolt

    Joined:
    Dec 15, 2012
    Posts:
    296
    last night when I create a new script class Monobheaviour is not found to be unity and attack when the script to an object tells me "Please fix compile errors before creating new script components" you know help me?
     
  2. Lentaq

    Lentaq

    Joined:
    Apr 8, 2015
    Posts:
    57
    You may just need to capitalize the B in MonoBehaviour.
     
  3. Mr_Teels

    Mr_Teels

    Joined:
    Jul 14, 2015
    Posts:
    14
    when you make a new scrip there are some things written inside as standart.
    void Start and void Update and the class declaration above. I think you deleted it. make a new script and compare them.
    it should be between "using" and "void Start()"