`Button' does not contain a definition for `onClick'?

Trying to use some example code i found here in the 4.6 section, but i keep getting two of these errors:
Type Button' does not contain a definition for onClick’ and no extension method onClick' of type Button’ could be found (are you missing a using directive or an assembly reference?)

Anyone can help me with this?

Do you have using UnityEngine.UI; //or "import UnityEngine.UI;" for JS at the top of your script?

1 Like

in 4.6 Beta 20, OnClick() I’m not show that…