I have the following code which hard codes the button size to 50:
btnTr.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, 50);
I actually want to get the current height of the button and add 10 to it’s size, but not quite sure how to do that. So something like this:
btnTr.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, currentHeightOfButton + 10);