Mouse Pointer in Screen and World Space! Mouse Picking in Unity! ✔️ 2021.1 | Game Dev Tutorial @NedMakesGames
Mouse Pointer in Screen and World Space! Mouse Picking in Unity! ✔️ 2021.1 | Game Dev Tutorial  @NedMakesGames
Uploaded April 2021 | Updated September 2026, 3 weeks ago
✔️ Works in 2020.3 ➕ 2020.1

The mouse pointer is essential to almost all PC games. In this video, I show how to get it's position and work with it in screen, viewport, and world space, as well as how cameras affect these spaces. I also explore two ways to implement mouse picking, or how to tell if the pointer is over an object in the world.

👋 Subscribe for weekly game development videos!
► youtube.com/c/nedmakesgames?sub_confirmation=1

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

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

🔴 Twitch ► twitch.tv/nedmakesgames
🐦 Twitter ► twitter.com/nedmakesgames
🎮 Discord ► discordapp.com/invite/ubxSVBK
📸 Instagram ► instagram.com/nedmakesgames
👽 Reddit ► reddit.com/u/nedmakesgames
🎶 TikTok ► tiktok.com/@nedmakesgames
☕ Ko-fi ► ko-fi.com/nedmakesgames

💬 Video transcript
► docs.google.com/document/d/1PP1p8bQ0VaYJMrUiy6XLQeJsVWH7Xv3RoJ5WOCwAxgI/edit?usp=sharing

📚 Reference scripts
► gist.github.com/NedMakesGames/51b0359a9e0724644269691d447d87c4

⏲️ Timestamps:
0:00 Intro
0:11 Screen position
0:46 Viewport position
1:26 World position
2:54 Mouse over messages
3:31 Mouse over raycasts
4:01 Wrap up and credits

🎖️ Credits and references:
• MarkGX: Drag a GameObject with the mouse - answers.unity.com/questions/12322/drag-gameobject-with-mouse.html
• Astigmatic: Special Elite font - fontsquirrel.com/fonts/special-elite
• trinter: LowPoly Mouse - cgtrader.com/free-3d-models/industrial/tool/lowpoly-mouse

Music:
Bleeping Demo by Kevin MacLeod
Link: incompetech.filmmusic.io/song/7012-bleeping-demo
License: filmmusic.io/standard-license

#GameDev #IndieDev #Unity
Mouse Pointer in Screen and World Space! Mouse Picking in Unity! ✔️ 2021.1 | Game Dev TutorialWind Animated Grass In Unity URP Shader Graph Using Meshes! ✔️ 2020.3 | Game Dev TutorialPeicemeal Terrain Processing! Tactical Lizard Tamer, Unity Game Dev Log [Part 132]Blocks Are In! Tactical Lizard Tamer, Unity Game Dev Log [Part 169]Clients Are Obsolete! Tactical Lizard Tamer, Unity Game Dev Log [Part 182]The Graphics Pipeline and You | Writing Unity URP Code Shaders Tutorial [1/9] ✔️ 2021.3Drawing Boxes and Rectangles in Shader Graph with 2D SDFs! #Shorts Preview | Unity Game Dev TutorialA Whole Turn Again! Tactical Lizard Tamer, Unity Game Dev Log [Part 163]Create a Sand Dune Shader Graph in Unity URP! No Textures Needed! ✔️ 2020.3 | Game Dev TutorialUpdating the Terrain Shader! Tactical Lizard Tamer, Unity Game Dev Log [Part 128]Intro Renderer Feature in Unity URP - Desaturate Post Process Effect ✔️ 2020.3 | Game Dev TutorialPlanning Mod Metadata! Tactical Lizard Tamer, Unity Game Dev Log [Part 187]
Ned Makes Games |

Mouse Pointer in Screen and World Space! Mouse Picking in Unity! ✔️ 2021.1 | Game Dev Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER