- Home /
How do I get the HTML5 canvas element in Unity3d WebGL Players
Hello!
I am wondering if there is a simple way to find out, which HTML5 canvas
element (or its container) the current gameInstance
belongs to.
Let's say we want to implement the examples of the manual WebGL: Interacting with browser scripting. Since there might be more than one player per page, the manual suggests to call the gameInstance.SendMessage
method.
Now I want to trigger events in the embedding page. How can I target it to the specific canvas or container element of the WebGL player to be able to distinguish which of multiple players was the source?
Your answer
Follow this Question
Related Questions
Use WebXR on web with cardboard 0 Answers
webgl app is not working in browser 0 Answers
WebGL Build bugged Colliders 0 Answers
webgl app is not working in browser 0 Answers
webgl app is not working in browser 0 Answers