Skip to main content
Don't repeat tags in title
Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

Sprite button not triggering "On Click()" event -Unity

Source Link

Sprite button not triggering "On Click()" event -Unity

Hi have created some buttons from sprite and I added image and button components on it.

enter image description here

enter image description here

I am just using sprites because In my game the camera can be moved on x and y. But I don't want my button to move and since UI buttons move with camera that is why I am not using them.

Here is the GIF to explain the scene:

enter image description here