<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/r5tgkbzjy" -->

---
title: UI Toolkit Series: Drag-and-Drop Manipulator | daily.dev
description: UI Toolkit manipulators provide a clean way to handle pointer-based interactions by encapsulating event logic in reusable classes. This tutorial demonstrates...
canonical: https://daily.dev/posts/r5tgkbzjy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: UI Toolkit Series: Drag-and-Drop Manipulator | daily.dev
og:description: UI Toolkit manipulators provide a clean way to handle pointer-based interactions by encapsulating event logic in reusable classes. This tutorial demonstrates...
og:url: https://daily.dev/posts/r5tgkbzjy
og:image: https://api.daily.dev/og/posts/r5tgKBZJY.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# UI Toolkit Series: Drag-and-Drop Manipulator

**[Unity Developers ](https://daily.dev/sources/unity_developers)** · [@barion](https://daily.dev/barion) · 0 upvotes · 0 comments

## Summary

UI Toolkit manipulators provide a clean way to handle pointer-based interactions by encapsulating event logic in reusable classes. This tutorial demonstrates building a drag-and-drop manipulator that inherits from PointerManipulator, tracks pointer events (down, move, up), and manages element positioning. The implementation includes two phases: dragging elements by calculating pointer offsets and applying them to element styles, then resolving drops by finding the nearest valid slot and snapping elements into place. The manipulator pattern keeps interaction logic self-contained and reusable across any visual element.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=HvsCvq0L6I4>

## Similar posts on daily.dev

- [Hands-On UI Toolkit Tutorials For Unity Devs](https://daily.dev/posts/hands-on-ui-toolkit-tutorials-for-unity-devs-uiybcyb9o) · 80 LEVEL · 0 upvotes · 0 comments
- [Build a draggable node diagram without a library](https://daily.dev/posts/build-a-draggable-node-diagram-without-a-library-inw8hqrre) · Flavio Copes · 0 upvotes · 0 comments
- [Blazor Basics: Building Drag-and-Drop Functionality](https://daily.dev/posts/blazor-basics-building-drag-and-drop-functionality-xjvmqyfsc) · Telerik · 0 upvotes · 0 comments

---

Tags: [#game-development](https://daily.dev/tags/game-development), [#unity](https://daily.dev/tags/unity)

[View this post on daily.dev](https://daily.dev/posts/r5tgkbzjy)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/r5tgkbzjy","headline":"UI Toolkit Series: Drag-and-Drop Manipulator","text":"Shared: UI Toolkit Series: Drag-and-Drop Manipulator","url":"https://daily.dev/posts/r5tgkbzjy","datePublished":"2026-02-12T10:46:44.609Z","dateModified":"2026-02-12T10:47:18.713Z","author":{"@type":"Person","name":"Barion","url":"https://daily.dev/barion","image":"https://avatars.githubusercontent.com/u/76686287?v=4","description":"Creating professional .NET Apps, Unity Games and Minecraft Mods.","worksFor":{"@type":"Organization","name":"Solid AI","logo":"https://media.daily.dev/image/upload/s--ASl-Tjzy--/f_auto/v1765182644/companies/solidai"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":10935}},"image":"https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/aCwMLQuAe"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/unity_developers","name":"Unity Developers "}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Unity Developers ","item":"https://daily.dev/squads/unity_developers"},{"@type":"ListItem","position":3,"name":"UI Toolkit Series: Drag-and-Drop Manipulator"}]}
```

