Unity Courses Restrict 2D Object Dragging to the Screen in Unity
Unity

Restrict 2D Object Dragging to the Screen in Unity

Nearly all 2D games require you to click or touch to drag objects around the scene.

1 chapter · 5m Beginner Updated 16 Jul 2023 Phil · @FirnoxGames
2D
Free

Free for everyone. No account needed.

Start watching →

What you'll learn

1 Restrict 2D object dragging to the screen in Unity ▶ 5 min

Nearly all 2D games require you to click or touch to drag objects around the scene.

In this chapter
  1. Introduction
  2. Updating the DragAll script
  3. Updating the Drag script
Included with this course
Video walkthrough · 5m
</>Annotated source code ↗ · public domain