ialex32x / unity-jsb

It brings Javascript runtime capability to Unity3D by integrating QuickJS.
MIT License
335 stars 41 forks source link

example_websocket 'WebSocket' is not defined #71

Closed TheGJ closed 2 years ago

TheGJ commented 2 years ago

Hello,

I tried to open the unity example project with the sample scene configured to load the websocket example and I get :

[native] failed to load module: example_websocket 'WebSocket' is not defined

Any idea? Thanks a lot!

ialex32x commented 2 years ago

Hi TheGJ, Thank you for reporting this issue, it's a trivial bug caused by the refactoring of register.CreateClass(), it's separated into CreateClass() and CreateGlobalClass() with different purposes. It's fixed in the last commit. Thanks again.