Extended version of the Reorderable List in Unity
Extended version of the Reorderable List in Unity
An attempt to mimic the ReorderableList within Unity while adding some extended functionality.
This extension can be installed using Unity package manager.https://github.com/cfoulston/Unity-Reorderable-List.git
Package manager UI
Manifest
{
"dependencies": {
"com.malee.reorderablelist": "https://github.com/cfoulston/Unity-Reorderable-List.git"
}
}
A standalone version is available under the standalone branch, although this version is no longer maintained.
There are two ways to use the ReorderableList
Pagination can be enabled in two ways:
[Reorderable(paginate = true, pageSize = 0)]list.paginatelist.pageSizepageSize defines the desired elements per page. Setting pageSize = 0 will enable the custom page size GUI
When enabled, the ReorderableList GUI will display a small section below the header to facilitate navigating the pages
Elements can be moved between pages by right-clicking and selecting "Move Array Element"
Surrogates can be created to facilitate adding Objects to a ReorderableList that don't match the ReorderableList type. This can be achieved in two ways:
[Reorderable(surrogateType = typeof(ObjectType), surrogateProperty = "objectProperty")]list.surrogate = new ReorderableList.Surrogate(typeof(ObjectType), Callback);Check the SurrogateTest and SurrogateTestEditor examples for more information
No open issues yet, or sync has not completed.