i have a game in witch i use a colllisionRay to click on 3d objects. when i click with the left button a callback is called. I have added a PGButton to aspect2d and i link the click on the button to another callback. When i click the button, two callback are called: the first is the one of collisionRay, the second is of PGButton.
I’d like that only PGButton’s callback is called.
How do i do it?
Is there a method of PGItem that returns true if the mouse is in the button??
thanks for all!!