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

  Рет қаралды 11,389

Ned Makes Games

Ned Makes Games

Күн бұрын

Пікірлер: 18
@raingamedev702
@raingamedev702 3 жыл бұрын
Thank you! I was planning to introduce mouse picking in near future. Very timely and helpful!
@nickbell1198
@nickbell1198 3 жыл бұрын
Thanks for the videos NED!! Really helpful.
@NedMakesGames
@NedMakesGames 3 жыл бұрын
Thank you for watching! Glad to help out!
@betoassumpcao
@betoassumpcao 3 жыл бұрын
awesome video! :D
@quadriproduction
@quadriproduction 3 жыл бұрын
Thank you Ned ! awesome
@maxtuhim7205
@maxtuhim7205 2 жыл бұрын
This is a great video, thanks ))
@NedMakesGames
@NedMakesGames 2 жыл бұрын
Thank you for watching!
@igormelo25
@igormelo25 3 жыл бұрын
thank you!! You really save me!
@NedMakesGames
@NedMakesGames 3 жыл бұрын
I'm glad to help out! Thanks for watching!
@BabyGlass
@BabyGlass 2 жыл бұрын
the mouse input is very close to the center of the camera when using perspective, how do i fix that? (works fine in orthographic)
@NedMakesGames
@NedMakesGames 2 жыл бұрын
Hi! Try increasing the z coordinate you send to CameraToScreenPoint.
@hibiscusbear
@hibiscusbear 3 жыл бұрын
great job!!! :D
@tomlapomme4745
@tomlapomme4745 3 жыл бұрын
Thank you, that was very instructive ! I got a question about types you used. What's the difference between a float3 and a vector3 of float ? Is that change something on optimization or is that just a preference ?
@NedMakesGames
@NedMakesGames 3 жыл бұрын
Hi! I'm glad to help, thanks for watching! Float3 is a new structure added in the Unity.Mathematics package, included within URP and more. I prefer it since it behaves more like vectors in shader code, but it's basically the same as Vector3. Thankfully, C# is smart enough to automatically cast between float3 and Vector3, so you can use them interchangeably.
@theugobosschannel8466
@theugobosschannel8466 3 жыл бұрын
Ned is it possible to have multiple mouse pointers? There are Windows apps that allow you to have multiple mouse connected to your PC with multiple mouse pointers on the screen. However, can Unity read both mouse pointers?
@NedMakesGames
@NedMakesGames 3 жыл бұрын
Hi! I don't think this is possible out of the box, unfortunately. I thought the new input system would for sure, but not according to this page: docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/Mouse.html Some people have gotten multiple mice working by reading the raw mouse input stream from Windows. This thread talks about it: forum.unity.com/threads/small-mono-csharp-script-based-driver-for-multiple-mice-support-in-unity.266174/
@jasontravail8224
@jasontravail8224 3 жыл бұрын
you dont explain code at all -_- wtf ?
@NedMakesGames
@NedMakesGames 3 жыл бұрын
Hi! Sorry, are you having trouble with any part in particular? This tutorial expects you to have some experience with C# and Unity. Maybe these videos can help: kzbin.info/www/bejne/fZm0lZ9_e96fh5o or kzbin.info/www/bejne/b6Wwp62opqeIhpo
11 Things You (Probably) Didn't Know You Could Do In Unity
13:49
Game Dev Guide
Рет қаралды 156 М.
How to convert the mouse position to world space in Unity
18:14
Game Dev Beginner
Рет қаралды 37 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 17 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 198 МЛН
I Wish I Had Known This Before I Started Unity Game Development...
11:11
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 546 М.
The Power of Scriptable Objects as Middle-Men
17:41
samyam
Рет қаралды 131 М.
4 Ways to Find Your Mouse Click in World Space
22:30
Board To Bits Games
Рет қаралды 61 М.
How to get Mouse Position in 3D and 2D! (Unity Tutorial)
10:20
Code Monkey
Рет қаралды 143 М.
How Do Computers Display 3D on a 2D Screen? (Perspective Projection)
26:54
The Best Games from GMTK Game Jam 2023
16:05
Game Maker's Toolkit
Рет қаралды 1,2 МЛН