I need to distinguish between the two. Because my character will be action when I click the mouse.
I found it is not working well with “EventSystem.current.IsPointerOverGameObject” what I always been used in UGUI.
So, I need a judge logic when I click the UI or gameObject. Avoid it will execute twice in UI logic and gameObject logic.
Have any suggestion for me : )
The UIElementPointerEnter & UIElementPointerExit events might help you.
I guess your idea is make a flag when mouse enter UIElement. And judge this flag is over UI or gameObject:)
Thanks, I will try to it