# Reorderable List
An attempt to mimic the ReorderableList within Unity while adding some extended functionality.
![screenshot](https://user-images.githubusercontent.com/6723783/45054643-70b46200-b042-11e8-874c-0d93a46e05a5.jpg)
## Features
* Drag and Drop references (like array inspector)
* Expandable items and list itself
* Multiple selection (ctrl/command, shift select)
* Draggable selection
* Context menu items (revert values, duplicate values, delete values)
* Custom attribute which allows automatic list generation for properties*
* Event delegates and custom styling
* Pagination
* Sorting (sort based on field, ascending and descending)
* Surrogates (Enable adding elements of a different type)
## Usage
There are two ways to use the ReorderableList
1. Create a custom Editor for your class and create a ReorderableList pointing to your serializedProperty
2. Create custom list class which extends from ReorderableArray<T>, assign [Reorderable] attribute above property (not class).
## Pagination
Pagination can be enabled in two ways:
1. With the [Reorderable] attribute:
* `[Reorderable(paginate = true, pageSize = 0)]`
2. Properties of the ReorderableList:
* `list.paginate`
* `list.pageSize`
`pageSize` 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
![pagination](https://user-images.githubusercontent.com/6723783/45054642-701bcb80-b042-11e8-84e4-0886d23c83c9.jpg)
#### NOTE
*Elements can be moved between pages by right-clicking and selecting "Move Array Element"*
## Surrogates
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:
1. With the [Reorderable] attribute:
* `[Reorderable(surrogateType = typeof(ObjectType), surrogateProperty = "objectProperty")]`
2. Property of the ReorderableList:
* `list.surrogate = new ReorderableList.Surrogate(typeof(ObjectType), Callback);`
Check the `SurrogateTest` and `SurrogateTestEditor` examples for more information
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
Match 3 Sweet Sugar v1.4.zip (2000个子文件)
expl_around.anim 186KB
sad-girl.anim 67KB
RewardAnimation.anim 54KB
rotation.anim 53KB
character congrat.anim 51KB
character main.anim 48KB
character idle.anim 46KB
map_button_hide.anim 21KB
stripped_anim.anim 19KB
horr_appearing.anim 15KB
floating_word.anim 14KB
banner.anim 14KB
tree.anim 13KB
bomb_boost.anim 13KB
bannerFailed.anim 12KB
stop.anim 12KB
5sec.anim 10KB
apple-factory.anim 10KB
package_expl.anim 10KB
map_button_show.anim 10KB
package_idle.anim 9KB
bannerComplete.anim 9KB
BrickRotate.anim 9KB
banner.anim 9KB
tip.anim 9KB
mainmenu.anim 8KB
SpriteSecond0.anim 8KB
SpriteSecond13.anim 8KB
SpriteSecond11.anim 8KB
SpriteSecond12.anim 8KB
SpriteSecond15.anim 8KB
SpriteSecond8.anim 8KB
SpriteSecond5.anim 8KB
SpriteSecond4.anim 8KB
SpriteSecond3.anim 8KB
SpriteSecond7.anim 8KB
SpriteSecond9.anim 8KB
SpriteSecond1.anim 8KB
destroyItem.anim 8KB
house-1.anim 8KB
flower.anim 8KB
SpriteSecond10.anim 7KB
SpriteSecond14.anim 7KB
SpriteSecond2.anim 7KB
SpriteSecond6.anim 7KB
Menu.anim 7KB
tip1.anim 6KB
sugar-stick.anim 6KB
ship.anim 6KB
idle 1.anim 5KB
Button_show.anim 5KB
star_anim2.anim 5KB
logo.anim 5KB
house 3-2.anim 5KB
button.anim 5KB
marmalate.anim 5KB
house-3-1.anim 5KB
cloud.anim 5KB
SpinIdle.anim 5KB
character icon.anim 5KB
wheel.anim 5KB
disappear.anim 4KB
ingredient.anim 4KB
random_color_boost.anim 4KB
star_anim.anim 4KB
idle.anim 4KB
expl.anim 4KB
anim_fly_loop.anim 4KB
appear.anim 4KB
button_idle.anim 4KB
destroy.anim 3KB
popupText.anim 3KB
leadboard_show 1.anim 3KB
SpriteThird20.anim 3KB
SpriteThird16.anim 3KB
SpriteThird10.anim 3KB
SpriteThird14.anim 3KB
SpriteThird22.anim 3KB
SpriteThird2.anim 3KB
SpriteThird4.anim 3KB
SpriteThird23.anim 3KB
SpriteThird19.anim 3KB
SpriteThird17.anim 3KB
SpriteThird8.anim 3KB
SpriteThird11.anim 3KB
SpriteThird7.anim 3KB
SpriteThird13.anim 3KB
SpriteThird1.anim 3KB
SpriteThird5.anim 3KB
circle_expl.anim 3KB
flyupText.anim 3KB
apearing_thriving.anim 3KB
field_appearing.anim 3KB
SpriteThird18.anim 3KB
SpriteThird12.anim 3KB
SpriteThird0.anim 3KB
SpriteThird6.anim 3KB
star_animation.anim 3KB
SpriteThird21.anim 3KB
SpriteThird15.anim 3KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
qq_37136128
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0