Hi!
I’ve been struggling for a while now. All was set correctly, but whenever i clicked an action button, it was like the ActionButtonUi.SetBaseAction for all buttons was clicked the onClick itself did not fire.
Then I found out you need to add this check:
if (EventSystem.current.IsPointerOverGameObject())
{
return;
}
to UnitActionSystem.Update. After that, all was working fine.
TBH, IDK what’s happening here, but I wanted to share this just in case someone else is also having the same problem.
I hope it helps someone.
Regards,
Breno.