Api Editor MapEditor IMapViewDropTarget
interface

IMapViewDropTarget

public interface IMapViewDropTarget

Provides an interface for dragging and dropping Asset or Package on a map view. Use with CanDropAttribute to register your drop target for a Type or GameResource type.

Methods

virtual Void DragEnter(Asset asset, MapView view)

An asset started being dragged over a Hammer view..

virtual Void DragEnter(Package package, MapView view)

An sbox.game package started being dragged over a Hammer view..

virtual Void DragMove(MapView view)

Called when the mouse cursor moves over a Hammer view while dragging an asset or a package.

virtual Void DragDropped(MapView view)

Called when a dragged an asset or a package gets finally dropped on a Hammer view.

virtual Void DragLeave(MapView view)

Called when a dragged an asset or a package gets dragged outside of a Hammer view. This is a good spot to clean up any created nodes.

virtual Void DrawGizmos(MapView view)
Assembly: Sandbox.Tools Namespace: Editor.MapEditor Full Name: Editor.MapEditor.IMapViewDropTarget