Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Websockets + WebGL throwing exception, Unity 5.4 doesn't allow AddComponent(MonoBehaviour)!

$
0
0
EDIT: It looks like Unity 5.4 simply doesn't allow attached MonoBehaviour with AddComponent(). Any help would be appreciated, I literally can't connect until this is resolved :(

When connecting to PUN in Unity 5.4, it's throwing two (related) exceptions:

1) "AddComponent with MonoBehavior is not allowed." It references line 79 of SocketWebTcp.cs which does precisely what it says is not allowed (it's trying to add monobehaviour with addcomponent).
2) This then causes a null reference, not shocking where it didn't allow mb to be added, at line 84 of SocketWebTcp.cs where it attempts to do this: this.sock = new WebSocket(new Uri(ServerAddress));

Viewing all articles
Browse latest Browse all 15755

Trending Articles