{"id":13663382,"url":"https://github.com/cfoulston/Unity-Reorderable-List","last_synced_at":"2025-04-25T13:33:11.323Z","repository":{"id":19831384,"uuid":"87960938","full_name":"cfoulston/Unity-Reorderable-List","owner":"cfoulston","description":"Extended version of the Reorderable List in Unity","archived":false,"fork":false,"pushed_at":"2021-01-06T21:28:52.000Z","size":289,"stargazers_count":639,"open_issues_count":7,"forks_count":96,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-11-10T19:35:52.295Z","etag":null,"topics":["list","unity","unity3d"],"latest_commit_sha":null,"homepage":"https://forum.unity3d.com/threads/reorderable-list-v2.339717/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfoulston.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-11T17:23:18.000Z","updated_at":"2024-10-28T05:28:28.000Z","dependencies_parsed_at":"2022-09-01T07:22:10.383Z","dependency_job_id":null,"html_url":"https://github.com/cfoulston/Unity-Reorderable-List","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfoulston%2FUnity-Reorderable-List","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfoulston%2FUnity-Reorderable-List/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfoulston%2FUnity-Reorderable-List/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfoulston%2FUnity-Reorderable-List/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfoulston","download_url":"https://codeload.github.com/cfoulston/Unity-Reorderable-List/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250825203,"owners_count":21493408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["list","unity","unity3d"],"created_at":"2024-08-02T05:02:26.031Z","updated_at":"2025-04-25T13:33:06.312Z","avatar_url":"https://github.com/cfoulston.png","language":"C#","readme":"# Reorderable List\n\nAn attempt to mimic the ReorderableList within Unity while adding some extended functionality.\n\n![screenshot](https://user-images.githubusercontent.com/6723783/45054643-70b46200-b042-11e8-874c-0d93a46e05a5.jpg)\n\n## Installation\n\nThis extension can be installed using Unity package manager.  \n`https://github.com/cfoulston/Unity-Reorderable-List.git`  \n\n* Package manager UI  \n\n\t![screenshot](https://user-images.githubusercontent.com/6723783/72479980-c9554c80-37aa-11ea-8fd8-978d3fa860bd.png)\n\n* Manifest\n\n\t\t{\n    \t\t\"dependencies\": {\n        \t\t\"com.malee.reorderablelist\": \"https://github.com/cfoulston/Unity-Reorderable-List.git\"\n    \t\t}\n\t\t}\n\n* A standalone version is available under the [standalone](https://github.com/cfoulston/Unity-Reorderable-List/tree/standalone) branch, although this version is no longer maintained.  \n\n## Features\n\n* Drag and Drop references (like array inspector)\n* Expandable items and list itself\n* Multiple selection (ctrl/command, shift select)\n* Draggable selection\n* Context menu items (revert values, duplicate values, delete values)\n* Custom attribute which allows automatic list generation for properties*\n* Event delegates and custom styling\n* Pagination\n* Sorting (sort based on field, ascending and descending)\n* Surrogates (Enable adding elements of a different type)\n\n## Usage\n\nThere are two ways to use the ReorderableList\n1. Create a custom Editor for your class and create a ReorderableList pointing to your serializedProperty\n2. Create custom list class which extends from ReorderableArray\u003cT\u003e, assign [Reorderable] attribute above property (not class).\n\n## Pagination\n\nPagination can be enabled in two ways:\n\n1. With the [Reorderable] attribute:\n\t* `[Reorderable(paginate = true, pageSize = 0)]`\n2. Properties of the ReorderableList:\n\t* `list.paginate`\n\t* `list.pageSize`\n\n`pageSize` defines the desired elements per page. Setting `pageSize = 0` will enable the custom page size GUI\n\nWhen enabled, the ReorderableList GUI will display a small section below the header to facilitate navigating the pages\n\n![pagination](https://user-images.githubusercontent.com/6723783/45054642-701bcb80-b042-11e8-84e4-0886d23c83c9.jpg)\n\n#### NOTE \n*Elements can be moved between pages by right-clicking and selecting \"Move Array Element\"*\n\n## Surrogates\n\nSurrogates can be created to facilitate adding Objects to a ReorderableList that don't match the ReorderableList type.\nThis can be achieved in two ways:\n\n1. With the [Reorderable] attribute:\n\t* `[Reorderable(surrogateType = typeof(ObjectType), surrogateProperty = \"objectProperty\")]`\n2. Property of the ReorderableList:\n\t* `list.surrogate = new ReorderableList.Surrogate(typeof(ObjectType), Callback);`\n\nCheck the `SurrogateTest` and `SurrogateTestEditor` examples for more information","funding_links":[],"categories":["C\\#","C#","Open Source Repositories","Inspector","Engines","Open Source Packages"],"sub_categories":["Editor"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfoulston%2FUnity-Reorderable-List","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfoulston%2FUnity-Reorderable-List","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfoulston%2FUnity-Reorderable-List/lists"}