Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Camera
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/7
Out of the box RTS style drag camera asset. Requires no coding experience. Comes with examples to speed up development.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2020.3.32f1
Compatible
Compatible
Compatible
Description

Description

An RTS style camera for 2D applications with drag panning, zooming and area clamping. Perfect for RTS or platform type games

Examples:

WebGL Example

Features:

- Limit Camera to rectangular area with easy to manipulate editor controls

- Panning speed, Zooming Limit, Zoom Speed, drag speed all adjustable from the editor.

- GUI based camera Dolly track system with integrated editor GUI controls

- Pro Only Feature Automatic smoothing, Straightening of track and time scaling

- Set the camera to traverse the track over a set time or tracked an object

- 4 Example scenes included with asset (Camera Dolly | Follow Player | RTS Style | Snap Box)

- Customizable in scene GUI plus much more.

How To:

- Simply add the Drag Camera 2D script to your main camera and you are ready to drag and go.

- Adding bounds is done via a click of the Add bounds button and an in scene adjustment to mark out the area.

- Using the dolly track is just as easy with the add dolly button and the easy to use in scene controls to adjust your track.

Asset Goals

The main goal of this asset is to allow the user to simple add this script to a camera and have the camera respond to user click and drag movements without any coding.

The act of dragging the camera (panning horizontally or vertically) with the mouse or keyboard input has been added to the script which can be added to a camera to allow the user to manipulate the view based on the users click and drag movement.

The camera can have limits set to stop the camera being dragged out of the desired viewing area.

The camera can zoom in and out with the scroll wheel with limits on minimum and maximum zoom as well as setting the amount to zoom in and out with each increment of the scroll wheel.

Visit www.gamedevelopment.blog to find out more.

Technical details
  • drag camera with mouse control
  • zoom and pan
  • side scrolling
  • limit camera bounds
  • camera dolly system
  • Snap Boxes (Cam swaps between rooms)

Drag Camera 2D

(10)
123 users have favourite this asset
(123)
FREE
License type
File size
7.7 MB
Latest version
1.7.1
Latest release date
Apr 27, 2022
Original Unity version
2019.1.0
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR