{"id":19419022,"url":"https://github.com/anchan828/unity-reorderablelist","last_synced_at":"2025-04-24T13:35:31.585Z","repository":{"id":142954746,"uuid":"13722389","full_name":"anchan828/unity-ReorderableList","owner":"anchan828","description":null,"archived":false,"fork":false,"pushed_at":"2014-12-05T16:07:02.000Z","size":148,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T06:12:31.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://anchan828.hatenablog.jp/entry/2013/10/12/033347","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anchan828.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-20T16:31:43.000Z","updated_at":"2021-10-06T08:04:56.000Z","dependencies_parsed_at":"2023-03-15T19:15:40.981Z","dependency_job_id":null,"html_url":"https://github.com/anchan828/unity-ReorderableList","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchan828%2Funity-ReorderableList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchan828%2Funity-ReorderableList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchan828%2Funity-ReorderableList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchan828%2Funity-ReorderableList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anchan828","download_url":"https://codeload.github.com/anchan828/unity-ReorderableList/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250636799,"owners_count":21463136,"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":[],"created_at":"2024-11-10T13:15:55.246Z","updated_at":"2025-04-24T13:35:31.230Z","avatar_url":"https://github.com/anchan828.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"unity-ReorderableList\n=====================\n\n![](http://gyazo.com/9e65eda84242ee5d6e3ecf7d77d163d4.png)\n\n\n```\nusing UnityEngine;\n\npublic class Sample : MonoBehaviour\n{\n    public string[] texts = new string[2];\n}\n```\n\n```\nusing UnityEngine;\nusing UnityEditor;\n \n[CustomEditor(typeof(Sample))]\npublic class SampleInspector : Editor\n{\n    private ReorderableList list = null;\n    public override void OnInspectorGUI()\n    {\n        if (list == null)\n        {\n            list = new ReorderableList(serializedObject, serializedObject.FindProperty(\"texts\"));\n        }\n        else\n        {\n            list.DoList();\n        }\n    }\n}\n```\n\n## API\n\n### Constructor\n\nName|Description\n:---|:---\nReorderableList|\n\n```\npublic ReorderableList(SerializedObject serializedObject, SerializedProperty serializedProperty, bool draggable = true, bool displayHeader = true, bool displayAddButton = true, bool displayRemoveButton = true)\n```\n\nType|Name|Description\n:---|:---|:---\nSerializedObject|serializedObject|\nSerializedProperty|serializedProperty|\nbool|draggable| Can elements drag?\nbool|displayHeader| Draw header , if true. The default is true.\nbool|displayAddButton| Draw AddButton , if true. The default is true.\nbool|displayRemoveButton| Draw RemoveButton , if true. The default is true.\n\n\n### Variables\n\nType|Name|Description\n:---|:---|:---\nSerializedObject|serializedObject|\nSerializedProperty|serializedProperty|\nfloat|elementHeight| The default is 21.\nDrawElementCallback|drawElementCallback|\nDrawHeaderCallback|drawHeaderCallback|\nAddCallbackDelegate|onAddDelegateCallback|\nRemoveCallbackDelegate|onRemoveDelegateCallback|\nSelectCallbackDelegate|onSelectCallback|\n\n### Functions\n\nName|Description\n:---|:---\nDoList| Draw ReorderableList\n\n### Delegates\n\nName|Description\n:---|:---\nDrawElementCallback|\nDrawHeaderCallback|\nSelectCallbackDelegate|\nAddCallbackDelegate|\nRemoveCallbackDelegate|\n\n\n```\npublic delegate void DrawElementCallback(Rect rect, int index, bool selected, bool focused);\n\npublic delegate void DrawHeaderCallback(Rect rect);\n\npublic delegate void SelectCallbackDelegate(int index);\n\npublic delegate void AddCallbackDelegate();\n\npublic delegate void RemoveCallbackDelegate();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchan828%2Funity-reorderablelist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanchan828%2Funity-reorderablelist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchan828%2Funity-reorderablelist/lists"}