文档

Unity Engine

Unity Engine

reorderable

Gets or sets a value that indicates whether the user can drag list items to reorder them.
阅读时间1 分钟最后更新于 24 天前

Definition

[UxmlAttribute]public bool reorderable { get; set; }

Remarks

The default value is
false
which allows the user to drag items to and from other views when you implement BaseVerticalCollectionView.canStartDrag, BaseVerticalCollectionView.setupDragAndDrop, BaseVerticalCollectionView.dragAndDropUpdate, and BaseVerticalCollectionView.handleDrop. Set this value to
true
to allow the user to reorder items in the list.