FullInspector.Rotorz.ReorderableList.ReorderableListControl.DrawLayoutEmptyList C# (CSharp) Method

DrawLayoutEmptyList() private method

Draw content for empty list (layout version).
private DrawLayoutEmptyList ( DrawEmpty drawEmpty ) : Rect
drawEmpty DrawEmpty Callback to draw empty content.
return UnityEngine.Rect
        private Rect DrawLayoutEmptyList(DrawEmpty drawEmpty)
        {
            Rect r = EditorGUILayout.BeginVertical(containerStyle);
            {
                if (drawEmpty != null)
                    drawEmpty();
                else
                    GUILayout.Space(5);
            }
            EditorGUILayout.EndVertical();

            // Allow room for add button.
            GUILayoutUtility.GetRect(0, addButtonStyle.fixedHeight - 1);

            return r;
        }