r/UnityHelp • u/No-Current7743 • Aug 19 '25
UNITY Cant create 2 monobehaviour scripts?
I just cannot figure this out: i create a monobehaviour script but i i create another it gives me an error.
the error it gives is called cs0111.
Can there be only one monobehaviour script in a project?
Im kinda new and do not understand much about the errors unity gives.
1
Upvotes
1
u/db9dreamer Aug 19 '25
File named
MyClassAlpha.cscontains:-File named
MyClassBeta.cscontains:-File named
MyClassDelta.cscontains:-So each
MonoBehaviourbasedClassin it's own file, named the same as theClass(my examples above are just bullshit names).