Search Unity

Question MonoBehavior Error

Discussion in 'Scripting' started by Demon_Drake, Sep 16, 2020.

  1. Demon_Drake

    Demon_Drake

    Joined:
    Jan 26, 2020
    Posts:
    3
    Hello there,
    Recently I have gotten back into Script Development, and have reinstalled Unity. But hindering my experience has been an error when creating scripts. When I create a new C# Script, it gives an error saying that there is no MonoBehavior in script file. Due to this, I Cannot put these scripts on any player objects, which means that the development cannot be continued because of not being able to test the game. If anyone has any info on how to fix this, please let me know!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,695
    Sounds rough! Without seeing code there's nothing anyone here can do.
     
  3. Demon_Drake

    Demon_Drake

    Joined:
    Jan 26, 2020
    Posts:
    3
    The Code i have been working on has the same file name as is posted in this
     

    Attached Files:

  4. Demon_Drake

    Demon_Drake

    Joined:
    Jan 26, 2020
    Posts:
    3
    And the view from what im seeing in unity
     

    Attached Files: