PUN2: Does not compile when targeting WebGL
Assets\Photon\PhotonUnityNetworking\Code\PhotonNetwork.cs(1085,5): error CS0103: The name 'SocketWebTcp' does not exist in the current context
Same on line 1116
Same on line 1116
0
Comments
-
Hi @Tesrym,
Thank you for choosing Photon!
Make sure you have the file "Assets\Photon\PhotonLibs\WebSocket\SocketWebTcp.cs".
What PUN2 version is this? 2.8?
What Unity version is this? higher or lower than 2017.3?
Could you try importing PUN 2.8 into a fresh clean empty project and see if the issue persists?0 -
I have SocketWebTcp.cs
Photon 2.8
Unity 2018.3.7f1
This is a clean project. And empty. And fresh
Solution has been found.
I had to add PhotonWebSocket as a reference in PhotonUnityNetworking.asmdef
Everything is green now.1