UnityEngine.GUILayoutGroup.GetLast C# (CSharp) Method

GetLast() public method

public GetLast ( ) : Rect
return Rect
        public Rect GetLast()
        {
            if (this.m_Cursor == 0)
            {
                Debug.LogError("You cannot call GetLast immediately after beginning a group.");
                return GUILayoutEntry.kDummyRect;
            }
            if (this.m_Cursor <= this.entries.Count)
            {
                GUILayoutEntry entry = this.entries[this.m_Cursor - 1];
                return entry.rect;
            }
            Debug.LogError(string.Concat(new object[] { "Getting control ", this.m_Cursor, "'s position in a group with only ", this.entries.Count, " controls when doing ", Event.current.type }));
            return GUILayoutEntry.kDummyRect;
        }