Vigyata.AI
Is this your channel?

Drag and Drop Inventory Items using Ninja Bear Studios (NBS)

424 views· 23 likes· 6:11· Dec 1, 2025

🛍️ Products Mentioned (8)

#coding #programming #unrealengine5 #ue5 #gamedev #gamedevelopment #gaming Website: https://codewithro.com/ Support me on Patreon: https://www.patreon.com/CodeWithRo Join my Discord Server: https://discord.gg/gZH4JDpgdT Donations: https://ko-fi.com/codewithro Synty Store: https://syntystore.com/codewithro Ithappy Store: https://ithappystudios.com/?ref=codewithro Use Code: CODEWITHRO25 to get 25% all Ithappy assets! Business Inquiries: codewithropatreon@gmail.com My full dev setup & gear: https://amzn.to/49gqJAU Learn Software/Gamd Dev: https://amzn.to/4blLbmA

About This Video

In this video I show you how to take an item that’s already in your Ninja Bear Studios (NBS) inventory setup and actually drag it out of the UI and drop it back into the world. I’m assuming you already followed my inventory tutorial, so here we’re focusing on the “pick up → inventory → drag → drop into world” loop. I use my sword pickup (I’m using Synty’s naming, Sword 16 from the fantasy pack) and make sure the item pickup is pointing at the correct item data asset. The key piece is adding the Drop Fragment to the item’s data asset. That fragment needs two things: a Pickup Actor Class (so you can pick it up again after you drop it) and a Placement Query (so Unreal knows where to spawn it). I create an Environment Query (EQS) that uses a Simple Grid generator, then add Distance and Trace tests. I set a min/max drop range (like 5 to 100), and I switch scoring to inverse linear so it prefers dropping closer rather than flinging it far away—plus I call out that if you have a big auto-pickup collision, you’ll want to raise that minimum so you don’t instantly re-pickup your drop. Finally, I add a Ninja Inventory Drop Zone widget to my inventory UI, set my inventory item widget to use itself as the drag widget, and test it: drag the weapon onto the drop zone and it pops out of the inventory and spawns back into the level behind/near the character.

Frequently Asked Questions

🎬 More from Code With Ro