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/3
Makes the camera follow the player while displacing the camera towards the mouse position. This camera movement is very similar to the one used in Enter the Gungeon.
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
2022.3.37f1
Compatible
Compatible
Compatible
Description

Usage:

  • Add the Script AimCameraComponent to your camera.
  • In the component parameters add your player.
  • Adjust other parameters to your liking.

How It works:


To move the camera, the viewport mouse position is used, meaning it works relative to the screen size.


Suppose we are always drawing a line from the player to the mouse. We will define distance as the point on this line where the camera is placed, measured from 0 to 1, where 0 is the player's position and 1 is the mouse's position.


the script defines 3 mouse zones:

  • form player to InnerZone: where the distance will always be 0, so the camera won't move at all.
  • form InnerZone to OuterZone: where distance will be interpolated between 0 and MaxDistance using the specified Curve.
  • from OuterZone to the edge of the screen: where the distance will always be equal to MaxDistance.

because the areas are measured relative to the screen size, they will be bigger on the x-axis than on the y-axis.

Technical details
  • Compatibility: Works with both Orthographic and Perspective Cameras.
  • Ease of Use: Integrating and setting up this asset is incredibly straightforward.
  • Customization: Customize the smoothness, speed and amount of displacement.
  • No Asset Dependencies A standalone solution for your Unity project.
  • Project Integration: The asset doesn't interfere with any other components, providing a hassle-free experience.

2D Aimed Follow Camera

(not enough ratings)
16 users have favourite this asset
(16)
FREE
License type
File size
241.4 KB
Latest version
1.0.0
Latest release date
Aug 9, 2024
Original Unity version
2022.3.37
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