- Home /
Question by
sccompany0610 · Feb 10, 2019 at 03:18 PM ·
c#scripting problemerrorbuttonbug
Unity can't use the script.
My C# script's name is same, and not include invalid text, but why Unity says me 'No MonoBehaviour scripts in the file, or their names do not match the file name'?
unitybug1.png
(34.1 kB)
Comment
You have 2 functions that aren't being called from anywhere. Have a look at https://docs.unity3d.com/ScriptReference/$$anonymous$$onoBehaviour.html