g3n / engine

Go 3D Game Engine (http://g3n.rocks)
https://discord.gg/NfaeVr8zDg
BSD 2-Clause "Simplified" License
2.74k stars 292 forks source link

How to tell if the click is on the UI or an object in the game #275

Open 529124368 opened 2 years ago

529124368 commented 2 years ago

Excuse me, I use the ray to click the screen to move, but how do I judge whether the click is the UI or the scene in the game, and how to set the penetration filter of the ray

danaugrs commented 2 years ago

I think raycasting never hits GUI elements, if that's happening please open an issue