Get Object from Mouse Click and Call Functions through Interface 2D & 3D - Unity Tutorial
Learn how to use raycasts to click on objects with your mouse, and then make then execute functions via interfaces! I show how to do it in both 2D and 3D! ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓 https://sam-yam.itch.io/samyam-full-s... 📥 Get the Source Code 📥 / get-object-from-41358553 🔗 Relevant Video Links 🔗 ᐅPrevious Video - Custom Cursor with Input System - Unity 2020 Tutorial: • Custom Cursor with Input System - Unity Tu... ᐅCoin Animation https://opengameart.org/content/coin-... ᐅKenney's Game Icons (expansion): https://www.kenney.nl/assets/game-ico... ᐅForest - Low Poly Toon Battle Arena / Tower Defense Pack https://assetstore.unity.com/packages... ᐅCustomizable skybox https://assetstore.unity.com/packages... 🤝 Support Me 🤝 Patreon: / samyg Donate: https://ko-fi.com/samyam Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets! 😎 Cool Unity Assets 😎 ᐅPeek - Editor Toolkit: https://assetstore.unity.com/packages... ᐅEditor Console Pro: https://assetstore.unity.com/packages... ᐅRainbow Folders 2: https://assetstore.unity.com/packages... ⏱️ Timestamps ⏱️ 0:00 Intro 0:44 Recap 1:17 Set up Ray 3:55 Click 3D Objects 7:45 Click 2D Objects 10:40 Interfaces for Calling Functions 💖💖THANK YOU TO ALL MY PATRONS 💖💖 ❯❯❯ My Links ❮❮❮ 💗 Patreon 💗 / samyg 💬 Discord Server 💬 / discord 🐦 Twitter 🐦 / samyam_utube 📚 Facebook 📚 / samyam.youtube 🎵 Music 🎵 Fretless by Kevin MacLeod Link: https://incompetech.filmmusic.io/song... License: http://creativecommons.org/licenses/b... 👍 Like and Subscribe! 👍 🖥️ Computer Setup 🖥️ *As an Amazon Associate I earn from qualifying purchases. https://www.amazon.com/shop/samyam #unity3d #unitytutorial #gamedevelopment

Cinemachine First Person Controller w/ Input System - Unity Tutorial

The Ultimate Introduction to Scriptable Objects in Unity

Dear Game Developers, Stop Messing This Up!

How to get Mouse Position in 3D and 2D! (Unity Tutorial)

START MENU in Unity

How to Program in Unity: State Machines Explained

SUMMER DEEP HOUSE Musics Mix 2026 ♫ Bruno Mars, Lady Gaga,Dua Lipa, Adele,Ed Sheeran, The Weeknd #02

My Favorite way to Click on GameObjects

What's NEW at✨SAM'S CLUB✨ + June 2026 INSTANT SAVING!!

Add an Interaction System to your Game - Top Down Unity 2D #16

Mobile Joystick with NEW Input System and Cinemachine - Unity Tutorial

The Unity Tutorial For Complete Beginners

Unity's "NEW" Input System with C# Events

Making UI That Looks Good In Unity

10 Things I Wish I Knew Before Starting a Large Godot Project (Cost Me Months)

How to make a HEALTH BAR in Unity!

How to make a good platforming character (Developing 6)

Selecting Objects in the 3D World with the Mouse Using Raycast (Unity Tutorial)

Your First 2D GAME From Zero in Godot 4 **Vampire Survivor Style**

