I got this error in javascript console when open my WebGL Unity build. I created a folder named “Plugins” and put inside a file with .jslib extension with next code:
And the file has a check WebGL.
The code that uses this plugin is below:
I got this error in javascript console when open my WebGL Unity build. I created a folder named “Plugins” and put inside a file with .jslib extension with next code:
And the file has a check WebGL.
The code that uses this plugin is below:
Unity 2021 and earlier cannot use ES6 syntax.
Unity 2021 and earlier cannot use ES6 syntax in .jslib. So try changing
GetBrowserQueryString: () => {
to
GetBrowserQueryString: function() {
modify the other parts where the arrow function is used in the same way.
.
I already figured it out, but thanks anyway