Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

OnPointerClick not working, others events yes

$
0
0
I use

publicoverridevoid OnPointerClick(PointerEventData data)
{
Debug.Log("OnPointerClick called.");
}

And it doesnt work, but others like OnPointerEnter work fine. Thought maybe the element needs a button component , i added it and doesnt work either, added it to its child a button component too and doesnt work.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>