Interface IReorderableListDropTarget
Can be implemented along with IReorderable
Namespace: Unity.VisualScripting .ReorderableList
Assembly: Unity.VisualScripting.Core.Editor.dll
Syntax
public interface IReorderableListDropTarget
Remarks
This type of "drop" functionality can occur when the "drag" phase of the
drag and drop operation was initiated elsewhere. For example, a custom
IReorderable
Methods
CanDropInsert(int)
Determines whether an item is being dragged and that it can be inserted or moved by dropping somewhere into the reorderable list control.
Declaration
bool CanDropInsert(int insertionIndex)
Parameters
Type | Name | Description |
---|---|---|
int | insertionIndex | Zero-based index of insertion. |
Returns
Type | Description |
---|---|
bool | A value of |
Remarks
This method is always called whilst drawing an editor GUI.
ProcessDropInsertion(int)
Processes the current drop insertion operation when Cantrue
to process, accept or cancel.
Declaration
void ProcessDropInsertion(int insertionIndex)
Parameters
Type | Name | Description |
---|---|---|
int | insertionIndex | Zero-based index of insertion. |
Remarks
This method is always called whilst drawing an editor GUI.
This method is only called when Cantrue
.