API ReferenceEditor.MapEditor
IMapViewDropTargetclass
Provides an interface for dragging and dropping `Editor.Asset` or `Sandbox.Package` on a map view. Use with `Editor.MapEditor.CanDropAttribute` to register your drop target for a `Sandbox.Package.Type` or `Sandbox.GameResource` type.
object→IMapViewDropTarget
Methods6
Showing 6 methods
public virtual void DragDropped(Editor.MapEditor.MapView view)
Called when a dragged an asset or a package gets finally dropped on a Hammer view.
| Parameter | Type | Description |
|---|---|---|
| view | MapView | — |
Returns:
void—public virtual void DragLeave(Editor.MapEditor.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.
| Parameter | Type | Description |
|---|---|---|
| view | MapView | — |
Returns:
void—No results match this filter.