2D sprite can't detect click event, even i already attached Box Collider.
Hi everyone, I plan to build a grid system and every grid can respond to click event, but they can't , after i attached Box Collider on it it's still no response. My grid looks like this.
my TestClick is like this
public class TestClick : MonoBehaviour, IPointerClickHandler { public void OnPointerClick(PointerEventData eventData) %|-773656391_2|% Debug.Log("test"); } }
Where am i wrong? Thanks
Your answer
Follow this Question
Related Questions
how to mask a textmesh with a 2d sprite mask (no canvas) 0 Answers
Animation Panel: how to turn an existing loop into just a standing sprite and then implement it 0 Answers
shader Graph in 2D sprites 0 Answers
Make Sprites Invisible without Disabling SpriteRenderer and without Masking 2 Answers
More correct way to insert Bacgrounds into a 2.5D video game? 0 Answers