Get Object from Mouse Click and Call Functions through Interface - Unity 2020 Tutorial
samyam
Learn how to use raycasts to click on objects with your mouse, and then make then execute functions via interfaces!
►Source Code: https://www.patreon.com/posts/get-object-from-41358553
►Previous Video - Custom Cursor with Input System - Unity 2020 Tutorial: https://youtu.be/PTL19bXCsNU
►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
►Assets: Coin Animation https://opengameart.org/content/coin-animation Kenney's Game Icons (expansion): https://www.kenney.nl/assets/game-icons-expansion Forest - Low Poly Toon Battle Arena / Tower Defense Pack https://assetstore.unity.com/packages/3d/environments/forest-low-poly-toon-battle-arena-tower-defense-pack-100080 Customizable skybox https://assetstore.unity.com/packages/2d/textures-materials/sky/customizable-skybox-174576
►Patreon: https://www.patreon.com/samyg ►Discord Server: https://discord.gg/B9bjMxj ►Twitter: https://twitter.com/samyam_utube ►Like and Subscribe! ►Music: Fretless by Kevin MacLeod Link: https://incompetech.filmmusic.io/song/3777-fretless License: http://creativecommons.org/licenses/by/4.0/ ... https://www.youtube.com/watch?v=JID7YaHAtKA
82696324 Bytes