UIItemSlot.UpdateCursor C# (CSharp) Method

UpdateCursor() public method

Set the cursor to the icon of the item being dragged.
public UpdateCursor ( ) : void
return void
    void UpdateCursor()
    {
        if (mDraggedItem != null && mDraggedItem.baseItem != null)
        {
            UICursor.Set(mDraggedItem.baseItem.iconAtlas, mDraggedItem.baseItem.iconName);
        }
        else
        {
            UICursor.Clear();
        }
    }