Setting Up a Smooth Mouse Look Camera Controller Script in Unity ✔️ 2020.3 | Game Dev Tutorial

Опубликовано: 20 Март 2026
на канале: Ned Makes Games
41,102
764

✔️ Works in 2020.1 ➕ 2020.2 ➕ 2020.3

A mouse look camera controller is the backbone of many first-person-view games, allowing the player to look around by moving the mouse around the screen. In this video, I show you how to easily set one up, deal with common problems, and prepare for more complicated camera controllers.

👋 Subscribe for weekly game development videos!
https://www.youtube.com/c/nedmakesgam...

👑 Join my Patreon for extra influence over topics, early access to videos, and downloadable project files!
►   / nedmakesgames  

🔗 Check out my website for a searchable list of tutorials!
► https://nedmakesgames.github.io

🔴 Twitch ►   / nedmakesgames  
🐦 Twitter ►   / nedmakesgames  
🎮 Discord ► https://discordapp.com/invite/ubxSVBK
📸 Instagram ►   / nedmakesgames  
👽 Reddit ►   / nedmakesgames  
🎶 TikTok ►   / nedmakesgames  
☕ Ko-fi ► https://ko-fi.com/nedmakesgames

📚 Reference scripts
► https://gist.github.com/NedMakesGames...

⏲️ Timestamps:
0:00 Intro
0:30 Basic script
2:30 Inverting vertical input
2:42 Smoothing
4:35 Clamp vertical angle
5:06 Pausing input
6:15 Supporting physics
7:10 Wrap up and credits

🎖️ Credits and references:
• Paper texture: freepik - https://www.freepik.com/premium-vecto...
• Music: Rolemusic "The Black" - https://freemusicarchive.org/music/Ro...
• Mouse pointer: openclipart - https://publicdomainvectors.org/en/fr...
• Camera clip art: openclipart - https://publicdomainvectors.org/en/fr...
• Clouds: polyperfect "Low Poly Ultimate Pack" - https://assetstore.unity.com/packages...

#GameDev #IndieDev #Unity