Unity Interaction Tutorial: How to interact with any game object (open chests and doors, etc.)

Unity Interaction Tutorial: How to interact with any game object (open chests and doors, etc.)

HomeDan PosUnity Interaction Tutorial: How to interact with any game object (open chests and doors, etc.)
Unity Interaction Tutorial: How to interact with any game object (open chests and doors, etc.)
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Wishlist Revolocity on Steam! https://store.steampowered.com/app/2762050/Revolocity/ It can be quite difficult to understand the interaction systems in Unity, but in this tutorial I will show you how to interact with arbitrary game objects in Unity, using interfaces to enable interactions between the player and your other scripts.

Free UI sprites: https://www.kenney.nl/assets?qui
Interfaces: https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/types/interfaces

Get access to my tutorial project files on Patreon: https://www.patreon.com/danpos

Join the conversation about Blender and Game Dev on the Creative Magpie Discord server: https://discord.gg/Pr2rFnd39X

️ Find me elsewhere on the Internet:

Gumroad: https://gumroad.com/danpos_
Twitter: https://twitter.com/danpos_
Instagram: https://www.instagram.com/danpos_

Check out these top Unity assets:

New in the Asset Store:
https://assetstore.unity.com/top-assets/top-new?aid1101lkANY

Top payment packages:
https://assetstore.unity.com/top-assets/top-paid?aid1101lkANY

Most downloaded packages:
https://assetstore.unity.com/top-assets/top-download?aid1101lkANY

Top free assets:
https://assetstore.unity.com/top-assets/top-free?aid1101lkANY

Asset Store Partners:
https://assetstore.unity.com/lists/asset-store-partners-6?aid1101lkANY

If you enjoyed this video and want to further develop your skills, I can highly recommend the following courses I have taken*:

GameDev.tv courses: https://www.gamedev.tv/courses?affcode45216_rgqfyamb

Blender 2.8 Launch Pad Course: https://academy.cgboost.com/p/blender-2-8-launch-pad?affcode206256_8lmhcd75

Substance Painter launch pad: https://academy.cgboost.com/p/substance-painter-launch-pad?affcode206256_8lmhcd75

Unreal Engine Blueprint game developers:
https://click.linksynergy.com/deeplink?idO69B0IVv9EY&mid39197&murlhttps%3A%2F%2Fwww.udemy.com%2Fcourse%2Funrealblueprint%2F

Unreal Engine C Developer:
https://click.linksynergy.com/deeplink?idO69B0IVv9EY&mid39197&murlhttps%3A%2F%2Fwww.udemy.com%2Fcourse%2Funrealcourse%2F

Blender 3D Modeling for Beginners: https://click.linksynergy.com/deeplink?idO69B0IVv9EY&mid39197&murlhttps%3A%2F%2Fwww.udemy.com%2Fcourse%2Fblender-3d-sculpting-course%2F

First steps in C programming:
https://click.linksynergy.com/deeplink?idO69B0IVv9EY&mid39197&murlhttps%3A%2F%2Fwww.udemy.com%2Fcourse%2Fbeginning-c-plus-plus-programming%2F

The ultimate guide to game development with Unity:
https://click.linksynergy.com/deeplink?idO69B0IVv9EY&mid39197&murlhttps%3A%2F%2Fwww.udemy.com%2Fcourse%2Fthe-ultimate-guide-to-game-development-with-unity%2F

️ This is the equipment I use to create*

Lenovo L24Q – QHD 24/" monitors: https://amzn.to/3s6Rba0
BONTEC dual monitor arm: https://amzn.to/3s7tgr1
Logitech G213 Keyboard: https://amzn.to/38pe3tq
Logitech Z333 2.1 speaker system: https://amzn.to/2LBdNic
Logitech 720p webcam: https://amzn.to/39eyecG
Blue Yeti Microphone: https://amzn.to/2Le7EbB
Corsair VOID ELITE RGB headphones: https://amzn.to/35i50bB
Corsair Harpoon RGB Optical Gaming Mouse: https://amzn.to/3olwCUV
Corsair iCUE LS100 Smart Lightin Strip Starter Kit: https://amzn.to/3q5mMXP
Corsair iCUE 465X RGB case: https://amzn.to/3noyNpp
Corsair Hydro 100i RGB cooling system: https://amzn.to/3q0K8xH
RTX 2060: https://amzn.to/35kewLF
Large mouse pad: https://amzn.to/2MEQdBn
Gel wrist rest: https://amzn.to/3bj3Pg0

Video music provided by EpidemicSound: https://www.epidemicsound.com/referral/u4445w/

*These are affiliate links, which means I get a small commission if you decide to buy something – but the price for you doesn't change! I would really appreciate any support 🙂 *

Time stamp:
00:00 – Introduction
00:54 – Setup
01:09 – Creating an interactor component
08:27 – Creating an interaction interface
10:40 – Setting up interactive monobehaviors
17:03 – Check player for key
20:55 – Setting up the interaction UI
24:57 – Billboarding the UI to face the camera
28:16 – Coding the Prompt UI Script
33:17 – Outro

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.