unity-game-enginebuttononclickbuttonclicktextmeshpro

I can't add OnClick functions to my button in Unity


I can't add OnClick functions to my Text Mesh Pro button. The menu is not what it used to be. Any solution?

img

I removed and re-imported the TMP package but nothing changed.


Solution

  • You are looking at the 'Debug' version of the property inspector. Turn off Debug and you will see the OnClick handlers.

    Look for the three dots to the far right side of where you have the Inspector window docked. Click on it and choose 'Normal'