Search Unity

Question Error code Help

Discussion in 'Unity Hub' started by Lordnightmare301, Jan 28, 2024.

  1. Lordnightmare301

    Lordnightmare301

    Joined:
    Jan 28, 2024
    Posts:
    1
    Everyone,

    I get this error code:

    Assets\NewBehaviourScript.cs(1,28): error CS0246: The type or namespace name 'MonoBehaviour' could not be found (are you missing a using directive or an assembly reference?)

    I am not sure what I am doing wrong. The code is correct!!

    Please help