I also ran into this issue. Somehow, I unchecked the Raycast target on the image script. Checking this allowed the onClick.AddListener() to work.
.onClick.AddListener(() => TestAddition());
private void TestAddition()
{
Debug.Log("Testing Button");
}
↧