TwitchLib.Unity
TwitchLib.Unity copied to clipboard
Client & PubSub is not compatible with certain versions of the Unity Editor
Issue resolved
As of Unity 2018.2.5f1 (and possibly a few versions earlier), this issue has been fixed.
The issue
As of Unity 2018, most versions so far are no longer compatible with the TwitchLib Client and PubSub for Unity. This has to do with the WebSocket4Net dll that TwitchLib's Client and PubSub uses.
Please note: This only affects the TwitchLib Client and PubSub. Not the TwitchLib Api,
~~Please vote for a fix!~~
~~A Unity bug report has been created in the hope that Unity will be fixing this issue soon. Please vote on the bug report to put a bit more pressure on the Unity developers to get this fixed! You can find the bug report here: https://issuetracker.unity3d.com/issues/opened-event-of-a-websocket4net-dot-websocket-does-not-get-called-when-opening-a-web-socket~~
~~Please note that even though it says it's fixed in 2018.2, according to our tests, it's not.~~
Supported Unity versions
Official releases:
- Unity 2018.2.5f1
- Unity 2018.1.3f1
- Unity 2018.1.2f1
- Unity 2018.1.1f1
- Unity 2018.1.0f2
- Unity 2017.4.6f1 (LTS)
- Unity 2017.4.5f1 (LTS)
- Unity 2017.3.1f1
- Unity 2017.2 and earlier versions
Beta releases:
- Unity 2018.2.0b1
Unsupported Unity versions
Official releases:
- Unity 2018.1.6f1
- Unity 2018.1.5f1
- Unity 2018.1.4f1
Beta releases:
- Unity 2018.2.0b4
- Unity 2018.2.0b5
- Unity 2018.2.0b6
- Unity 2018.2.0b7
- Unity 2018.2.0b8
- Unity 2018.2.0b9
Testing your Unity version's compatibility
To figure out whether version of Unity that you're using should be compatible, you can use the following method:
Instructions
- Create a new Unity project with the version of Unity that you would like to test.
- Download the zipped Unity Package: WebSocket4Net Unity TestPackage.zip
- Unzip the zipped Unity Package.
- Drag the unzipped Unity Package file into your project's asset folder.
- Press the play button.
If your version of Unity is compatible. It should show a message "opened" in the Debug Log. If your version of Unity is not compatible. It should show no message in the Debug Log.
Solutions
The Unity versions listed under the supported Unity versions should work just fine. So you can always switch your Unity project to one of those versions.
Currently there are no solutions available for the listed unsupported Unity versions.
Looks like this is still an issue in Unity 2018.2.1f1
As I understand it, the move to .net core 2.1 should resolve this issue as we remove the external dependency on websocket4net
As of Unity 2018.2.5f1 (and possibly a few versions earlier), this issue has been fixed. Might be best to keep this issue open for a little while though since people might still use older versions.