Description
The OnDragDrop
method is a virtual method in the Editor.AssetList
class. It is designed to handle drag-and-drop events when an item is dropped onto the asset list. This method can be overridden in a derived class to provide custom behavior for handling drag-and-drop operations.
Usage
To use the OnDragDrop
method, you should override it in a subclass of Editor.AssetList
if you need to customize the behavior when an item is dropped onto the asset list. The method takes a single parameter of type Editor.Widget/DragEvent
, which contains information about the drag event.
Example usage:
public class CustomAssetList : Editor.AssetList
{
public override void OnDragDrop(Editor.Widget.DragEvent ev)
{
// Custom handling of the drag-and-drop event
// For example, you might want to add the dropped item to the asset list
// or perform some validation before accepting the drop.
}
}
Example
public class CustomAssetList : Editor.AssetList
{
public override void OnDragDrop(Editor.Widget.DragEvent ev)
{
// Custom handling of the drag-and-drop event
// For example, you might want to add the dropped item to the asset list
// or perform some validation before accepting the drop.
}
}