How to detect when an entity is clicked on?
Livelink.js Reference
https://docs.3dverse.com/sdk/SDK3DVerse.engineAPI.html#castScreenSpaceRay
Add an event listener to the canvas element
1
2
Implement the event handler function
1
2
3
4
5
6
https://docs.3dverse.com/sdk/SDK3DVerse.engineAPI.html#castScreenSpaceRay