Browser Scripting Basic Example Not Working

I’ve been trying to get the basic example of “WebGL: Interacting with browser scripting” using ".jslib plugin" from the Unity docs working for the past few hours now and I am completely stumped!

I’ve tried both the new and old implementations in multiple versions of 2019 and 2018 as well as in both the Chrome and Edge browsers:

I am always met with the same “missing function: Hello” browser console error.

I’ve attached a clean new project with an example scene in it. If you build to WebGL, you should presumably get the same error upon playing the build in a browser.

Any advice would be extremely appreciated!

5242583–523427–WebGL_Test.zip (20.5 KB)

So I managed to implement browser scripting thanks to this post:

I am still dumbfounded that I couldn’t get the Unity provided sample code to work, I would still love to know why!