Your Cart
Loading

All In One 2D Top Down Camera Controller

On Sale
$24.99
$24.99
Added to cart

This prefab provides an easy-to-use movement and scroll zoom system for your Unity games. Simply drag and drop it into your scene and it will automatically set up the necessary components.


Benefits:

  • Easy to Use: Drag and drop the prefab into your scene and it's ready to go.
  • Customizable: Adjust the zoom speed, limits, Cinemachine integration and toggle features to suit your game's needs.
  • Versatile: Supports different movement mechanics and can be used for various purposes, such as camera control or character zooming.
  • Dynamic support: You are able to get quick support via discord or contact form if the package doesn't work on your system/unity version.

Usage:

  1. Drag and drop the prefab into your scene.
  2. Adjust the variables in the script to customize the zoom/movement behavior.

Note: The prefab uses the new Input System and Cinemachine packages. Make sure to import them into your project if you haven't already.


Technical Details:


  • Input System Scroll Detection: Detects scroll wheel input along with touchpad input and translates it into zoom commands.
  • Custom Actions File: Includes a separate actions file that allows you to customize the zoom and movement behavior.
  • Adjustable Zoom Speed: Control the speed of the zoom using the "Zoom Speed" variable.
  • Adjustable Movement Speed: Control the base movement speed using the "Movement Speed" variable, with additional options for speed progression via animation curves.
  • Max Zoom Delta: Limit the maximum amount of zoom by setting the "Max Zoom Delta" variable to prevent excessive zooming.
  • Zoom Levels: Define the minimum and maximum zoom levels using the "Min" and "Max" values in the "Zoom Levels" struct.
  • Cinemachine Compatibility: Works seamlessly with Cinemachine's virtual cameras for compatibility with its addons/components (Including confiners).
  • Smooth Zoom Functionality: Supports smooth zoom transitions, which can be enabled or disabled with the "Use Smooth Zoom" toggle.
  • Inertia for Camera Movement: Smooth deceleration of camera movement when no input is detected, configurable with the "Inertia Duration" variable.
  • Edge Scrolling: Allows camera movement when the mouse is near the screen edges, with adjustable speed and threshold for detection.
  • Mouse Drag Movement: Enables drag-based camera movement with smooth follow-up, allowing for precise manual control over camera position.
  • Zoom Location Adjustment: Ensures that the camera zoom focuses on a specific world target, maintaining the zoom's position relative to the screen-space position of the mouse.
  • External Movement Delta: Supports external forces (e.g., external inputs) to modify camera position during zooming or movement, ensuring the camera reacts to dynamic changes.
  • Cinemachine Confiner Support: Supports Cinemachine’s confiner feature for keeping the camera within specified bounds in a 2D environment.
  • Customizable Movement Curves: Uses customizable animation curves for movement speed adjustments based on elapsed time, enhancing dynamic control over movement speed.



You will get the following files:
  • UNITYPACKAGE (157KB)
  • UNITYPACKAGE (155KB)