Hi,
I've been trying to anchor UI items to a percentage of the screen rather than a fixed offset from the anchor, and cannot figure out if there is an easy way to do this in tk2d. I explain what I'm trying to accomplish with an image:
The 4 buttons are anchored "Middle Center", and I'm positioning them through code at the percentage proportions in the image. What I'm wondering is: is there a way to accomplish this using the anchoring system?
The 2 corner buttons are easy to place using "Lower Right" and "Lower Left" anchors. What I'm having trouble with are the 2 middle buttons, that should be at 1/3 of the offset of the corner buttons. I calculate this 1/3 offset through code and place them, but it's not a good solution, as I cannot check the layout for other resolutions by changing the preview resolution, only by hitting play in Unity for every resolution.