It’s me again with the GUI menu I am creating. This time my issue is this.
In the example above you can see three different observers.
- onPointerEnter (returns object that is entered/hovered over, which is what I need);
- onPointerOut (returns the same thing as previous one);
- onPointerClick (doesn’t return the object that I clicked on, I believe it returns the coordinates where I clicked and buttonIndex);
What I need is to get GUI control that I clicked on, so the same thing as first two observers return. Am I doing this wrong, is there another way?