반응형
링크 - https://docs.unity3d.com/Manual/webgl-networking.html
Unity - Manual: WebGL Networking
WebGL Networking No direct socket access Due to security implications, JavaScript code does not have direct access to IP Sockets to implement network connectivity. As a result, the .NET networkingThe Unity system that enables multiplayer gaming across a co
docs.unity3d.com
일단 WWW 으로 통신하면 됩니다.
보안 제한 때문에 웹 도메인이 같은 경우에만 됩니다.
에서 유니티의 WebGL 빌드로
https://www.othersgame.com/abc.html
으로 WWW 통신을 하려고 하면 안된다는 뜻입니다.
같은 도메인의 다른 페이지는 읽을 수 있습니다.
웹소켓 통신이 되는지는 아직 확인해보지 못했습니다.
반응형