Search Unity

no MonoBehaviour

Discussion in 'Package Manager' started by lordsox, Jan 7, 2020.

  1. lordsox

    lordsox

    Joined:
    Jan 6, 2020
    Posts:
    11
    Hello guys,
    maybe it is not the right place to put this question, but i am new so forgive me, I encounter this error:

    i just create a new UNITY project (ver. 2019.2.17f1)
    then i create a new C# script in Assets window keeping it with the default name "NewBehaviourScript"

    well it comes with already an error: "No MonoBehaviour scripts in the file, or name not match filename" (second option obvously not the case)

    Do I have to import any package or some extra Assets to include all the dependencies and ged able to get MonoBehaviour?

    Thank you very much

    PS my PC language is french so i dont know if something is connected to this.
     
  2. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    756
    Hi @lordsox ,

    MonoBehaviour is a builtin feature. You don't need extra packages to instantiate this class.

    J'espère que ça t'aidera à progresser dand ton apprentissage de Unity :)

    Regards,

    Pascal