Easy Asset Search

Universal Camera Controller (2D and 3D)

Comprehensive camera movement, rotation, and zoom functionality for Unity projects in 2D and 3D environments.
Universal Camera Controller (2D and 3D) Asset Image Comprehensive camera movement, rotation, and zoom functionality for Unity projects in 2D and 3D environments.

* This page contains affiliate links, meaning we may earn a small commission if you purchase something through them, at no extra cost.
$15
Category:
ToolsCamera
Developer:
Chalice Studios
Price:
$15
Favorites:
2
Supported Unity Versions:
6000.0.29 or higher
Current Version:
1.0
Download Size:
180.30 KB
Last Update:
Mar 4, 2025
Description:
This script controls the camera in a Unity scene, enabling users to move, rotate, and zoom using customizable key bindings. It offers the flexibility to pan the camera using keyboard inputs or screen edge panning with mouse control, rotate the camera around a defined pivot point or around its own position, zoom in and out with assigned key controls, limit camera movement within a defined boundary range for each axis (X, Y, Z), and provides an optional pivot for rotating around specific points in 3D space.
Technical Details:
Movement Modes: Supports movement via keyboard keys (W, A, S, D) and mouse edge panning (customizable border thickness). Rotation: Handles free or pivot-based rotation, customizable via key inputs (Q, E, R, F for different axes). Zooming: Zooms in and out based on key inputs (Z, X) and limits zoom range by Y-position. Speed Controls: Includes configurable movement speed, rotation speed, and zoom speed. Boundary Clamping: Ensures the camera stays within set movement boundaries defined by minX, maxX, minY, and maxY. Pivot Point: Optionally supports rotation around a specified pivotPoint transform, otherwise rotates around its own position. Key Bindings: Each action (movement, rotation, zoom) can be independently enabled or disabled and configured with specific keys, including custom controls for vertical movement in 2D games. Collision-Free Movement: The script does not handle collisions but can be adapted to prevent the camera from passing through objects by adding collision detection code. Key Fields: canKeyPan, canMousePan, canRotate, canZoom: Toggles for enabling/disabling movement, rotation, and zoom functionalities. moveForward, moveBackward, etc.: Key bindings for camera movement and actions. panSpeed, rotationSpeed: Control the speed of the camera's movement and rotation. minX, maxX, minY, maxY, minZ, maxZ: Boundaries to constrain the camera's position. pivotPoint: Optional point around which the camera can rotate.
Continue »

Similar Packages