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.
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.