📅  最后修改于: 2022-03-11 14:58:32.627000             🧑  作者: Mango
the same issue just happened to me.
The reason was bcz I've renamed one of the scripts(inside Unity)
Visual Studio couldn't detect the issue
so just make sure that the files in Unity has the same class name in the Visual Studio.