Hello. I have an image, let’s say 100x100, I want to do a button bigger then this image (let’s say 300x300), furthermore I want to do so that button animations affect on this image too.
Well, what I already did:
- Created the button
- Removed component “image (Script)” from it, set the button size to 300x300
- Created object - UI image with component “image (Script)” within and attached this object as a child of button
- Set the button “Transition” field to “Animation”
- Run the game
The result is: the button only works if I press on image (which is 100x100), not when I press on the button rect itself.