void OnDragHover( Editor.Widget/DragEvent ev )

book_4_sparkGenerated
code_blocksInput

Description

The OnDragHover method is a virtual method in the Editor.GameObjectControlWidget class. It is designed to handle drag hover events within the editor environment. This method is called when a drag operation is hovering over the widget, allowing for custom behavior to be implemented during this interaction.

Usage

To use the OnDragHover method, you should override it in a subclass of GameObjectControlWidget. This allows you to define specific behavior when a drag event hovers over the widget. The method takes a single parameter, ev, which is of type Editor.Widget/DragEvent. This parameter provides information about the drag event, such as the source and target of the drag operation.

Example usage:

public class MyCustomWidget : GameObjectControlWidget
{
    public override void OnDragHover(Editor.Widget.DragEvent ev)
    {
        // Custom logic for handling drag hover
        if (ev.Data is MyCustomData)
        {
            // Handle the drag hover event
        }
    }
}

Example

public class MyCustomWidget : GameObjectControlWidget
{
    public override void OnDragHover(Editor.Widget.DragEvent ev)
    {
        // Custom logic for handling drag hover
        if (ev.Data is MyCustomData)
        {
            // Handle the drag hover event
        }
    }
}