1.SocketException: 以一种访问权限不允许的方式做了一个访问套接字的尝试
Unity出错显示:SocketException: 以一种访问权限不允许的方式做了一个访问套接字的尝试,这是因为unity访问权限导致的,以管理员权限打开Unity就可以解决了
2.VS2017无法识别Monobehaviour,导致没有任何提示
(1).这是unity默认编辑器没有设定成VS的缘故,在Edit-- >Preferences-->External Tools面板有一个External Script Editor 可以选择你的脚本编辑软件,设置成VS2017就能解决问题了
(2).版本不同所造成的问题,有一次从Unity2018.2移植到Unity2017.4,VS2017无法识别MonoBehaviour,这个问题没解决,只能再与其他人一起工作的时候,先规定统一使用某个版本
3.NullReferenceException: Object reference not set to an instance of an object
最常出现的问题,基本上就是没有给某个对象赋值
4.Type 'UnityEngine.Component' does not support slicing
解决方法:将animation改成GetComponent.<Animation>()
5.UnityEngine.Mesh.SetTriangleStrip(int)' is obsolete
解决方法:将SetTriangleStrip函数改成SetTriangles
6.UnityEngine.Mesh.GetTriangleStrip(int)' is obsolete
解决方法:将GetTriangleStrip函数改成GetTriangles