I've implemented scroll view with buttons inside but has problem that buttons' OnClick are called just once. It's really strange. After that I've tested on Quest Log example and had the same effect!
I've opened Quest Log example and attached to SlicedSprite(which contains boxcollider and does tweening) my script:
using UnityEngine;
public class TestButton : MonoBehaviour {
private void OnClick() {
Debug.Log("Test");
}
}
While running when I click that sprite, I get my Debug message, but just once. In other clicks on that sprite nothing happens.
How to deal with that? And why tweening works, but my code doesn't?
Thanks.