Ejemplo n.º 1
0
        protected void InitList(ReorderableListBuilder builder)
        {
            list = builder.Build();

            if (displayHeader)
            {
                list.drawHeaderCallback = DrawHeader;
            }
            if (drawCustomElement)
            {
                list.drawElementCallback = DrawElement;
            }
        }
Ejemplo n.º 2
0
        public static ReorderableListBuilder GetDefaultBuilder(SerializedObject serializedObject, SerializedProperty elements)
        {
            ReorderableListBuilder builder = new ReorderableListBuilder()
            {
                serializedObject    = serializedObject,
                elements            = elements,
                draggable           = true,
                displayHeader       = true,
                displayAddButton    = true,
                displayRemoveButton = true,
                drawCustomElement   = true
            };

            return(builder);
        }