Unity3D 常见问题
1. error CS0103: The name `Analytics’ does not exist in the current context
2. 运行Editor模式下,频繁卡死
原因是在于运行Editor时Unity3D会频繁请求网络,而且还都是境外服务,所以会造成卡死。
Mac下使用Little snitch限制Unity3D的网络请求就可以了。
3. WWW
Error: Cannot create FMOD::Sound instance for resource (null), (An invalid parameter was passed to this function. )
unable to determine the audio type from the url
在使用WWW时碰到如上问题,但是我的数据都是Json数据,并没有取AudioType等。
发生问题的原因是当GameObjec被SetActive(false)时,协程会被中断,进而导致WWW也被中断,从而出现异常。