Published On Mar 23, 2021
🌍 Get my Complete Courses! ✅ https://unitycodemonkey.com/courses
đź‘Ť Learn to make awesome games step-by-step from start to finish.
🎮 Get my Steam Games https://unitycodemonkey.com/gamebundle
đź’¬ One of the comments I get a lot is people asking why the code shown in the video isn't working, and usually the reason is because in the video I showcase some system working in 2D and they're trying to get it to work in 3D.
It's pretty simple to get the mouse position in 3D but it is a completely different method compared to 2D.
So here let's see how both methods work and why they need to be different.
2D: Camera.main.ScreenToWorldPoint(Input.mousePosition);
3D: Physics.Raycast(Camera.main.ScreenToRay(Input.mousePosition, out RaycastHit raycastHit));
🌍 Get Code Monkey on Steam!
đź‘Ť Interactive Tutorials, Complete Games and More!
âś… https://store.steampowered.com/app/12...
If you have any questions post them in the comments and I'll do my best to answer them.
đź”” Subscribe for more Unity Tutorials    / @codemonkeyunity Â
See you next time!
đź“Ť Support on Patreon   / unitycodemonkey Â
🤖 Join the Community Discord   / discord Â
🎮 Grab the Game Bundle at https://unitycodemonkey.com/gameBundl...
đź“ť Get the Code Monkey Utilities at https://unitycodemonkey.com/utils.php
#unitytutorial #unity3d #unity2d #unity​ #gamedev​ #indiegame​ #gamedevelopment #madewithunity​ #indiedev​
--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.
I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.
I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.
You can see my games at www.endlessloopstudios.com
--------------------------------------------------------------------
Other great Unity channels:
Brackeys -    / brackeys Â
Dani -    / @danidev Â
Jabrils -    / @jabrils Â
BlackthornProd -    / @blackthornprod Â
Sykoo -    / sykootv Â
Jason Weimann -    / @unity3dcollege Â
Jonas Tyroller -    / @jonastyroller Â
--------------------------------------------------------------------
Website: https://unitycodemonkey.com/
Twitter:   / unitycodemonkey Â
Steam: https://store.steampowered.com/develo...