13 Inventory Functionality Part 3 [UE4 - Survival Game]

Опубликовано: 13 Март 2026
на канале: TwoNeurons
1,638
61

Welcome to video 13 in this #UE4 #SurvivalGameTutorial for developing a survival game. In this video, we will create the other functions that our inventory system needs. In particular, we will make the function to discard items, change/swap slots, and split stacks.

In the next video, we will be working on your UMG widgets for our inventory.

00:00 - Intro
Step 1: Prep
01:11 - Step 1a: Update Inventory (set up)
Step 2: Discard Item
02:16 - Step 2a: Create Function
03:16 - Step 2b: Check if discard is valid (Check Slot is Free)
06:45 - Step 2c: Set Inventory
11:27 - Step 2d: Spawn discared item
18:24 - Step 2f: Update inventory
Step 3: Change Slots
19:33 - Step 3a: Create function
20:53 - Step 3b: Checking in bounds
22:46 - Step 3c: Store and Swamp Slot Data
26:12 - Step 3d: Update inventory
Step 4: Split stack (part 1)
26:49 - Step 4a: Create Function
27:52 - Step 4b: Check (valid slot)
28:32 - Step 4c: Check (split checks; Start)
Step 5: Item Info
29:41 - Step 5: Get Item Info
Step 6: Split stack (part 2)
33:22 - Step 6a: Complete Second Check
35:27 - Step 6b: Adjust Stack
37:02 - Step 6c: New Stack
38:32 - Outro


Assets used in this project: http://bit.ly/SurivalGame

---------
Support this channel:   / twoneurons  

---------
Follow me at:
Twitter:   / twoneuronstream  
Twitch:   / twoneurons  
Discord:   / discord  

#UnrealEngine5 #UnrealEngine4 #UE4Tutorial