public static Rect InnerAlignWithBottomCenter(this Rect source, Rect target) { var rect = source.AlignVerticallyByCenter(target); rect.y = target.yMax - rect.height; return(rect); }