SOLVED: Call the JavaScript function already existing in HTML page from the WebGL?

Hello, sorry for so simple question, but to my surprise I really was not able to find a direct answer:

How can I call the JavaScript function, already existing in the standard tag within the html page, from the embedded Unity WebGL scene?

In fact I am looking for direct replacement of the simple “Application.ExternalCall” deprecated
without clear definition of its successor in the manual - it mentions just the javascript functions put in a jslib file stored in Unity project’s “Assets” folder.

Sorry again if I have overlooked anything apparent and clear :slight_smile:

Silly me - of course the Javascript function in html page can be called directly by the Javascript code in the file with .jslib extension under a “Plugins” subfolder in the Assets folder of the Unity project, as described in the Unity Manual.

1 Like