Opening & Locking DOOR SYSTEM In Unity URP (Keys, Inventory, Sounds Tutorial)

15 hours ago
4

Collect keys, add them to your inventory and open doors! You'll discover how to use raycasts to detect interactive objects, build scripts to manage doors and keys, and design lockable doors for your game. We'll dive into Scriptable Objects for creating keys, integrating them into an inventory system, and displaying them on-screen with a UI Manager script. Plus, tie it all together with immersive sound effects for opening, closing, locked doors, and key pickups. Perfect for enhancing your game's interactivity and player experience!

🔥Door Interaction Kit: https://tinyurl.com/yzsatrr5

🔥Patreon Links:
➡️Scripts Pack: https://www.patreon.com/posts/118288318
➡️Full Project: https://www.patreon.com/posts/118288623

🔥Free Assets:
➡️Classic Door Interior Pack: https://tinyurl.com/3pyk5s78
➡️Key & Lock: https://tinyurl.com/3ej2awwx
➡️Patio Table: https://tinyurl.com/yjbrxhv4
➡️Door Small Sound Pack: https://tinyurl.com/7u7wedc6

🔥Unity Sale: https://bit.ly/UnitySalesHub

➡️Playing and Creating Animations: https://www.youtube.com/watch?v=gj9Eq3WJLJo
➡️Creating a Crosshair UI: https://www.youtube.com/watch?v=y9TaleFxoVg
➡️Ultimate Guide to Unity Audio: https://www.youtube.com/watch?v=YnIiMCnAf9E

·························································································

🎁Get OVER 225+ scripts & projects on my PATREON:
➡️Main Link: http://bit.ly/SpeedTutorPatreon
➡️Full List: https://tinyurl.com/STPatreonAssetsList

💰BIG DISCOUNTS on my website, for my UNITY ASSETS:
➡️https://www.speed-tutor.com

·························································································

➡️Purchase Left Alone (2016) on Steam: http://tinyurl.com/LeftAlone2024
➡️Wishlist Left Alone: Rebirth on Steam: https://tinyurl.com/LeftAloneRebirth
🔥SpeedTutor Unity Store: https://bit.ly/STUnityStorePuzzlePacks

🔥 INSANE UNITY SAVINGS: https://bit.ly/UnitySalesHub
🕹️Unity Sale: https://bit.ly/UnitySalesHub
🕹️Unity Flash Deals Full Page: https://tinyurl.com/2c885xp7
🕹️Quick-Start Bundle: https://bit.ly/UnityQuickStartBundle
🕹️Weekly Publisher Sale (+FREE Asset): https://bit.ly/WeeklyPublisherSale

🔥 INSANE HUMBLE SAVINGS: https://bit.ly/HumbleBundleDeals

🔥LEARTES ENVIRONMENT BUNDLES:
🕹️Unity Black Friday Leartes Environment Bundle (Code "BF60"): https://gumroad.com/a/813714451/jdsttx
🕹️Unity Hyperganza Enviro Bundle (Code "HV60"): https://gumroad.com/a/813714451/uhewu
🕹️Unity Gigavaganza Enviro Bundle (Code "GV70"): - https://gumroad.com/a/813714451/eheaq

🔥 FANATICAL GAMEDEV BUNDLES: https://fas.st/t/HYxySc2q
🕹️All GameDev Deals: https://fas.st/t/HYxySc2q

🔥Synty Discounts & Savings: https://bit.ly/SyntyLowPolyAssets
🔥Unity Pro Deals: https://bit.ly/UnityProDeals
🔥Topcashback: https://bit.ly/TopcashbackReferral

·························································································

⭐ Connect with me:
💬| Discord: https://discord.gg/vnhWy6R
🐦| Twitter: https://twitter.com/SpeedTutor
📱 | Facebook: https://www.facebook.com/Speedtutoruk
🖥 | Website: http://www.speed-tutor.com
💝| Make a donation: http://www.paypal.me/speedtutor

·························································································

00:00 Intro
00:44 What FREE assets you can use
01:10 Scene Setup & Material Updating
02:53 Creating Raycast script to detect interactive objects
05:16 Creating DoorItem script to act as generic script for all interactive items & continuing with raycast
08:50 Adding logic to DoorItem script for interactive objects
09:36 Creating DoorInteractable & KeyCollectable scripts to use later
09:50 Continuing DoorItem script
12:15 Writing Door Opening/Closing Logic
16:31 Creating Key ScriptableObjects
19:05 Creating Key Inventory script
23:46 Creating Locking Door Mechanics
26:49 Creating UI Canvas & Prefabs
29:10 Creating UI Manager to Show Keys on-screen
32:38 Adding Sound Effects To Key Pickup
34:09 Adding Sound Effects For Door Opening / Closing

·························································································

⬇️ SpeedTutor Puzzle / Model / Particle Assets:
🧩Unity Store: https://bit.ly/STUnityStorePuzzlePacks
🧩My Website Discounts: https://www.speed-tutor.com/

⬇️ SpeedTutor Best Selling Assets:
🧩Adventure Puzzle Kit: https://bit.ly/STAdventurePuzzleKit
🧩Note & Letter System: https://bit.ly/STNoteLetterSystem
🧩Examine System: https://bit.ly/STExamineSystem
🧩Keypad System: https://bit.ly/STKeypadSystem

·······················································································

This post may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. Clicking these links won't cost you any money, they will help me fund my development, thank you so much!

·······················································································
#SpeedTutor #Unity #DoorSystem

Loading 1 comment...