Unity|Click Event Property Details|Tips

Recommended reading:

Sometimes we encounter button click events that do not take effect during development. At this time, we need to check a little: Is the clicked game object what we expect? So, how to judge?

On the Hierarchy panel, there will be an EventSystem object. EventSystem is unity's UGUI event management system, which manages all UGUIs involved in message processing. When a click event occurs in the game, the black block area in the lower right corner will display various attributes of the click, including the name of the clicked game object.

Through these properties, we can determine whether the click is what we expect.
insert image description here

Guess you like

Origin blog.csdn.net/shirln/article/details/122487946