Commands

All commands available in the Spark UI system. Execute via Spark.Network.ExecuteCommand().


DragDropCommand

Executes a drag-and-drop operation within the UI system. Used for inventory item dragging, equipment slot interactions, and other drag-drop UI behaviors.

Property
Type
Description

SourceSlot

UISlot

The UI slot being dragged from

TargetSlot

UISlot

The UI slot being dropped onto

Entity

NetworkEntity

The entity performing the drag-drop

var command = new DragDropCommand
{
    SourceSlot = inventorySlot,
    TargetSlot = equipmentSlot,
    Entity = playerEntity
};
Spark.Network.ExecuteCommand(command);

Last updated

Was this helpful?