unity3d编译脚本时出现 No MonoBehaviour scripts in the file,or their names do not match the file name
学习unity3D编译脚本时,挂载到物体上总是出错导致窗口关闭,发现点击脚本时出现的提示是 No MonoBehaviour scripts in the file,or their names do not match the file name原因是因为文件名重命名的时候直接改了一次,而里面的类名不会随着文件名修改,所以导致文件名和脚本里类名不一致,不管修改文件名还是类名改成一致就ok了...
原创
2022-03-27 15:37:10 ·
8792 阅读 ·
5 评论