2
« on: June 02, 2015, 06:37:10 PM »
I am using a 510x510 sliced sprite as the border for all different sizes of buttons and general hud borders. The issue is sometimes I cannot shrink the to the appropriate size I want without applying a transform scale to shrink the border sprite. It works overall but usually this border is the child of my button and if I want to resize the overall button, the border sprite moves with unexpecting results and generally gets itself offset from my button. Also, telling it to anchor to the above button, it rescales itself and messes up the look. I am guessing that the math being applied to the moving it is off as the local scale values are not 1 to 1 anymore. Is there any proper way to do this, or do I need multiple sized sprites for the different border sizes I need?