Borodar.ReorderableList.ReorderableListControl.DrawLayoutEmptyList C# (CSharp) Метод

DrawLayoutEmptyList() приватный Метод

Draw content for empty list (layout version).
private DrawLayoutEmptyList ( IReorderableListAdaptor adaptor, DrawEmpty drawEmpty ) : Rect
adaptor IReorderableListAdaptor Reorderable list adaptor.
drawEmpty DrawEmpty Callback to draw empty content.
Результат UnityEngine.Rect
        private Rect DrawLayoutEmptyList(IReorderableListAdaptor adaptor, DrawEmpty drawEmpty)
        {
            Rect position = EditorGUILayout.BeginVertical(ContainerStyle);
            {
                if (drawEmpty != null)
                    drawEmpty();
                else
                    Debug.LogError("Unexpected call to 'DrawLayoutEmptyList'");

                s_CurrentListStack.Push(new ListInfo(_controlID, position));
                try {
                    adaptor.BeginGUI();
                    _insertionIndex = 0;
                    _insertionPosition = position.y + 2;
                    HandleDropInsertion(position, adaptor);
                    adaptor.EndGUI();
                }
                finally {
                    s_CurrentListStack.Pop();
                }
            }
            EditorGUILayout.EndVertical();

            // Allow room for footer buttons?
            if (HasFooterButtons)
                GUILayoutUtility.GetRect(0, FooterButtonStyle.fixedHeight - 1);

            return position;
        }