GetSectionRect() public abstract method

Return the rect for the given section identifier.
public abstract GetSectionRect ( string id, Rect initial ) : Rect
id string
initial UnityEngine.Rect
return UnityEngine.Rect
Beispiel #1
0
        public override Rect GetSectionRect(string sectionId, Rect initial)
        {
            float padding = initial.height - _centered.Height;

            initial.y      += padding / 2;
            initial.height -= padding;

            initial = _centered.GetSectionRect(sectionId, initial);
            return(initial);
        }