开发者

Is there a way to get a IGUIElement * given a pair of screen coordinates in Irrlicht?

开发者 https://www.devze.com 2023-01-28 10:07 出处:网络
I have a pair of screen coordinates and I need to know if they overlap any GUI elements. Is there some way of doing this or at least finding out if a given point is within the bounds of a GUI element

I have a pair of screen coordinates and I need to know if they overlap any GUI elements.

Is there some way of doing this or at least finding out if a given point is within the bounds of a GUI element?

It would 开发者_开发问答be preferable if there was some sort of isPointInsideAnyGUIElements() function.


Use env->getElementFromPoint(position)

0

精彩评论

暂无评论...
验证码 换一张
取 消