How to debug what I clicked on UI?

Hi all,

Is there a way to see what UI element I click on the editor? Sometimes I come across a problem that I cannot click a button or something. After looking every single UI elements that can be the problem, I find them; but I wonder if there’s a way to see the name of the UI element I click. Do I have write my own debug code for this, or is there a built-in feature?

The EventSystem component has a preview window that displays all kinds of info that might help you here:

6 Likes

You saved me so much headache, thank you!

1 Like