SecurityException: Unable to connect, as no valid crossdomain policy was found
System.Net.Sockets.Socket.Connect_internal (IntPtr sock, System.Net.SocketAddress sa, System.Int32& error, Boolean requireSocketPolicyFile)
System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy)
System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP)
System.Net.Sockets.UdpClient.DoConnect (System.Net.IPEndPoint endPoint)
System.Net.Sockets.UdpClient.Connect (System.Net.IPEndPoint endPoint)
System.Net.Sockets.UdpClient.Connect (System.String hostname, Int32 port)
之前team 里人也遇到过这个问题,后来通过复制别人的工程解决了, 这次是大家全军覆没,所以我就想办法了,
一顿谷歌之后发现web player会报这个错,一看顿时晕了,我工程啥时候变成web player了
菜单 File -> Buliding Settings -> PC and Mac Standalone,
然后点下面按钮 Switch Platform 切换平台
问题解决