AcutionButtonUI Prefab view highlight and game view don't match

Screenshot 2023-11-03 124512
Screenshot 2023-11-03 124615

I’ve added the image to the Action Button to highlight when active, the code works fine and it shows on the button in game when running and selected.

However the image itself doesn’t align in the way it does in the prefab. Scaling on all the objects seems fine, pixels per unit is 100. Anyone have a suggestion of what I could look at?

Thanks for any suggestions.

EDIT: The issue seems to be the Image component of the Action Button itself. For some reason in play mode it renders larger than in edit mode. Pixels per unit multiple is set to 1. I can’t seem to figure out what’s going on here.

I took a break a bit and after a few checks the issue was the outline image anchor property was set to center but needed to be set to stretched. This fixed the issue.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms