Clicking on a 3D object (Unity/C# tutorial)

Опубликовано: 04 Октябрь 2024
на канале: Mina Pêcheux
18,673
331

#unity #csharp #tutorial #gamedev #gameobject
In this short Unity tutorial, let's see how to interact with game objects at runtime, with 3 levels of difficulty!

🗒 Text version on Medium:   / unity-shorts-2-clicking-on-a-3d-object  
🔶 Unity docs: https://docs.unity3d.com
🔶 Unity's new input system: https://docs.unity3d.com/Packages/com...

0:00 - Introduction
1:03 - Credits
1:16 - Using OnMouseDown
4:34 - Using Physic Raycasts
6:29 - Tuning the Raycasts with layers