前言
今天把台式机里面unity写的五子棋游戏移动我笔记本上面,居然运行不了
Unity3d报错
no Monobehaviour scripts in the file, or their names don’t match the file name
尝试解决
此时我的类名和文件名是一样的
这个是用unity hud装的删除
下面这个是exe装的
冷静寻找原因
Microsoft ® Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright © Microsoft Corporation. All rights reserved.
error CS0006: Metadata file ‘G:\unity2018’ could not be found
error CS0006: Metadata file ‘4’ could not be found
error CS0006: Metadata file ‘3\Unity\Editor\Data\Managed/UnityEngine/UnityEngine.dll’ could not be found
error CS0006: Metadata file ‘3\Unity\Editor\Data\Managed/UnityEngine/UnityEngine.AIModule.dll’ could not be found
报错消失
解决方法
把逗号改成点就可以了