Тёмный

Unreal Engine 5 Tutorial - Inventory System Part 1: Inventory Component 

Ryan Laley
Подписаться 108 тыс.
Просмотров 159 тыс.
50% 1

We are revisiting one of my first series on the channel; the inventory system series, this time with different implementations, improvements, and now in Unreal Engine 5.
In Part 1 we set up the inventory component and some of its core functions and variables that will be in use.
SUPPORT ME
Patreon I / ryanlaley
Buy Me a Coffee I buymeacoffee.com/RyanLaley
Donations I paypal.me/ryanlaley
PRIVATE 1-2-1 SESSIONS
Email me at support@ryanlaley.com for more information and rates, or visit www.ryanlaley.c....
JOIN THE COMMUNITY
Discord I / discord
FOLLOW ME
Twitter I / ryanlaley
Facebook I / ryanlaleygames
Instagram I / ryanlaleygames

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 112   
@dankelpuff8381
@dankelpuff8381 Год назад
For anyone wondering which youtube series to follow this is truly the one. Simple, elegant and correctly uses classes. Best tutorial i have followed so far.
@Suleyk95
@Suleyk95 8 месяцев назад
I actually watched many series, but they're too long, or they don't explain the "why" behind everything, and I just end up copying stuff without understanding why or how it works. Just watched this first episode and this looks promising. Just 10 minutes and I understood how this will work overall.
@Suleyk95
@Suleyk95 8 месяцев назад
Well, coming back here to say this ISN'T the series. At some point stuff isn't event replicated, and when you start working on saving, everything will break. Don't waste your time unless you don't care about replication.
@JonathanBarrett-v3q
@JonathanBarrett-v3q 7 месяцев назад
@@Suleyk95 yeah i got to a later vid and wasnt working. Things not showing. Followed it to a T. Off to find another tutorial. LMK if you find one that works. Specifically for third person
@Suleyk95
@Suleyk95 7 месяцев назад
@@JonathanBarrett-v3q I followed a few inv tutorials and to be honest this one is well organized and easy to debug/modify, the bad part is the replication and saving. My advice is to watch a detailed guide on savegame, do that part on your own, and understand replication too. I managed to save player inventories by generating a save slot for each player and storing the inventory array there. The player slot name can be made in many ways, for now I'm getting the actor display name, but make sure you get it from the server, because each client instance will give actors their own name and they will send inconsistent actor names replacing the ones it shouldn't. Basically make a server call and send it your actor reference and inventory array, and the server will get the actor from the input, get its display name, set the savegame object inventory contents to the one you got as input, and once the variable inside the savegame object is updated with the inventory contents call the save game to slot function giving it the slot name you generated. In the future you can use other stuff as the slot name, such as the steam id, etc etc. For manually placed containers it will also get the actor name and save it, but for generated containers such as lootbags you will have to make some stuff so when the level loads, it will spawn those lootbags and then they can load the inventory on the actor begin play. TLDR, follow this series to get an organized inventory functionality BUT you will have to work on your own replication and saving logic, since it's kinda broken here. Make sure you don't just copy what you're seeing, understand what and why you're doing it and even if you dump the whole thing, you'll have some new knowledge and you'll be able to make your own stuff. Get inspiration from everywhere, fit your own pieces together.
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
Yep - here to agree - broken bug filled mess by the end, despite being promising for most of it. Not usable by the end.
@solodevinc
@solodevinc 2 года назад
Yes! Inventory Systems are hard because there are so many different possibilities and someone without the knowledge will find it hard to add to them
@22hoursago
@22hoursago Год назад
thank you i knoew it :')
@xynjak
@xynjak 9 месяцев назад
thank god my uni course is making us make one without teaching us the engine first!
@kimbalboa9398
@kimbalboa9398 2 месяца назад
One of the things i love with this series, is the community in the comments on each video. People giving tips when using newer versions, correcting things or suggestions for fixes.. Truly awesome crowd. Ryan is superb at delievering the tutorial, giving information a long the way for us beginners. Thanks a lot mate, really helping us out
@khalafle
@khalafle 3 месяца назад
Hey, Ryan! I am still under a week old in Unreal Engine experience, and one thing I have learned while scouring RU-vid for tutorials is to make sure the teachers systems are applicable throughout the entire development process. I wasn't sure if your series was for me, so before anything I watched the first (this) tutorial as it was short enough to recollect at the end. I watched two more videos, up to the end of the third tutorial, and declared that this series is the way to a proper functioning inventory and interaction systems. Thank you for the precision, feedback, and directional insight along the way! Will comment when I am through the entire series! I hope to follow along any more applicable tutorials/series of yours as you clearly understand how, let alone Unreal Engine, video games and their varying systems function. Again, thank you, sir!
@PureRealityGamesStudio
@PureRealityGamesStudio 11 месяцев назад
Hey Ryan, congrats for your series. I would like to suggest you a series of how to create a "Tetris Inventory Style", similar to the game Escape from Tarkov, specially how to implement the Inventory component on backpack, armors, etc. Most part of the tutorials on youtube are old or not well optimized/simplified. I´m pretty sure you would do a better job and people would love it.
@AnarchyArtwork
@AnarchyArtwork 3 месяца назад
I followed this series in Unreal 5.3 and it works brilliantly. I did have to make the appropriate changes for the new Enhanced Input Actions when setting up inputs. I'm completely new to Unreal though and Ryan even has a video about setting up those controls so you can use that video to guide the differences. I've even been customising this system a little as I experiment further. Good luck everyone and stick with it, thank you Ryan! 🐐⭐
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
DO NOT follow these tutorials or "stick with it" - anyone saying they're brilliant or even fully work has not tested them properly. They are a broken, bug filled mess by the end and remain unfixed
@AnarchyArtwork
@AnarchyArtwork 2 месяца назад
@@rubbakeys16k99 Could you explain? It works perfectly in my packaged build.
@mrwutchamacalit
@mrwutchamacalit 2 года назад
I am not sure if you know yet but theres something wrong with part of this video at 2:09 still able to follow the video just wanted to let you know
@ZatriX_ZA
@ZatriX_ZA 2 года назад
Lol, I thought it was just me )
@rainy2063
@rainy2063 Год назад
Same
@1111marsupilami
@1111marsupilami Год назад
@@ZatriX_ZA same
@1111marsupilami
@1111marsupilami Год назад
same
@Gytimaru
@Gytimaru Год назад
@@rainy2063 what do you mean "same"😂 it's in the video, everyone will see that too
@OLucasQueJoga
@OLucasQueJoga 5 месяцев назад
So far very clear and easy to follow! Thank you!
@michaeleber4752
@michaeleber4752 10 месяцев назад
Great job Ryan. Joining your group very soon. One thing I find that inventory systems need is a very good ordering system. So I've added Item Type. That way if I have iron and copper both are of type ore I can sort by type then name. All of my ores are together then alphabetized. All of my materials are together then alphabetized. etc.
@waadi3ach569
@waadi3ach569 6 месяцев назад
this is the go to inventory series in my opinion, very modular and organized and easy to customize for specific use. great job! in my specific case the inventory moves up and down with the character similar to ALS, and Game and UI and has a built in equipping system.
@nacargod5110
@nacargod5110 4 месяца назад
hey man i followed this tutorial and made an inventory system but i'm really struggling with making an equipment system working together with the inventory system i made following this series. u got any tips?
@brianstrigel2241
@brianstrigel2241 Год назад
Thank you so much for this series, as always!
@hypercynic
@hypercynic 2 месяца назад
Damn dude, that is one PUNCHY intro! I love it!
@chomnansaedan4788
@chomnansaedan4788 Год назад
You know. If I can't find a job using UE I might start trying to learn things others don't and making youtube videos about it. Its not only very helpful to upcoming people but it can maybe serve as some income for myself. Thanks for these series.
@goatlcknguud2595
@goatlcknguud2595 Год назад
how is this going bro?
@commandconquer5338
@commandconquer5338 6 месяцев назад
The GOAT of unreal engine
@VengefulGamer-e3n
@VengefulGamer-e3n 9 месяцев назад
What would I need to change to make this work for 3rd as well as 1st please ? Love your videos by the way very easy to follow and very well planned out
@kameenavery9616
@kameenavery9616 2 года назад
if possible, can you do both a single slot inventory and a grid based inventory? I was thinking it would be cool to let the player decide their inventory type, or have a single slot inventory on the player and a grid slot for the containers
@mijake9001
@mijake9001 2 года назад
Check out Jonatan Isaksson. He is in the middle of doing a very useful guide of Inventory system/equip system. Good content, videos aren't structured as well as Ryan's videos but sounds like it might be what you're looking for? Not to advertise him and poach traffic; just trying to help everyone out. :)
@KavanBahrami
@KavanBahrami 2 года назад
Oh snap! Inventory is back
@moo_goo
@moo_goo 8 месяцев назад
Please update the playlist for othrs, I had to go search from episodes 18-22. Great stuff! hope youll add splitting, and how to get this working for PC and console in the sense that controllers dont have mice and it would be better to have the cursor snap to each grid item. Thanks!
@C1aranT
@C1aranT 2 года назад
Oh my god back to save the day let's go woooooo
@AlexWalker_Ghost
@AlexWalker_Ghost Год назад
The Part WHere you add the Invitory Stuff Blueprint, its either Laggy / wont Show What You Type :/
@LeahsRoomYT
@LeahsRoomYT 8 месяцев назад
Hi Ryan! I don't know if it's mentioned later in the series but I'm trying to take notes as I go and I was wondering why you add the "F" prefix to your blueprints? Is it just for referencing or does this make an actual difference later on? Thanks!
@megtwin
@megtwin 8 месяцев назад
I was wondering the same but for my Structs I always prefix them with an "S", its just easier for me to find them.
@MichaelLindsey
@MichaelLindsey Год назад
I noticed that there is a Snag at the point where you create Functions, for me the Video hangs at Addto and doesn't continue until you are adding the Integar to Inventory size
@heikesteinheim9337
@heikesteinheim9337 Год назад
tru, have u found out, if he does sth important there? still wondering how nobody noticed, this happens quite a lot
@KeiNovak
@KeiNovak 24 дня назад
At around 2:11, right? I was wondering why none of the top comments mentioned this. Wasted like 15 minutes trying to figure out if it is an issue on my end or not. Sometimes it happens because I watch videos at increased speeds most of the time haha
@Артем-ф1р5т
@Артем-ф1р5т Год назад
Hello Ryan! I am thankful for your content! Keep this up! I also have a question. What would I need to change here to make it skyrim-like inventory?
@emivillalba
@emivillalba 2 года назад
thank you very very very much, you help me a lot
@PaulV3D
@PaulV3D 2 года назад
Great tutorial. Think I will join patron.
@SamuTheFrog
@SamuTheFrog 2 месяца назад
I'm curious why you don't do these with C++? Something like an inventory system I would think would greatly benefit the performance boost of using straight C++, and having someone build a whole inventory system in BP for their game seems like shooting themself in the foot in the long run.
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
Because the system you will build in BP is broken enough by the end of the tutorials, so why bother with C++ on top??
@AtakenSmith
@AtakenSmith 27 дней назад
A well optimized BP system is good enough to not bother with coding it yourself. Don't forget that BPs are just codes as well in the end.
@ademkoluk5047
@ademkoluk5047 Год назад
Thank you so much
@nacargod5110
@nacargod5110 4 месяца назад
hey Ryan is there any chance that you show how to build an equipment system working with this inventory system?
@salem6505
@salem6505 7 месяцев назад
thank you
@mvsticx7857
@mvsticx7857 Год назад
hello! can you do a shopkeeper tutorial thing? I want to use the weight and buy/sell value things in a project but i wouldnt really know how to do it on my own since im a beginner
@pangangowskiMC
@pangangowskiMC 2 года назад
Just in time!! Hope you'll show how to create crafting system with this inventory:)
@Novva619
@Novva619 Месяц назад
Can I create this same inventory system for a Third person character?
@gonzaloriverobaud7284
@gonzaloriverobaud7284 6 месяцев назад
excelente
@leondreiling892
@leondreiling892 2 года назад
Yaaaaaaaas!
@Uther001ful
@Uther001ful 6 месяцев назад
Great tutorial. but would like an inventory system that adds individual items instead of item types. eg if you have a torch that is 50% used, if you add it to inventory and take it back out you get a default torch from the data table and not the partially used one. Can anyone point me to a tutorial that could get me started.
@electricaljorden
@electricaljorden 6 месяцев назад
Love you
@liketobe2743
@liketobe2743 9 месяцев назад
I will try to combine the Inventory system with my interaction system I made. whish me luck :D
@RyanLaley
@RyanLaley 9 месяцев назад
You can do it!
@GaladorLP
@GaladorLP 4 месяца назад
i'm trying to follow along. At 3:50 in the struct. If i wanted a weight based inventory size woul i need to ad another variable thats a float? and of course make inventory size a float. somthen i can fill inventory size with weight times quantity, right?
@Nicara_V
@Nicara_V Год назад
Please specify that this tutorial is for 5.0 as recorded. When you use 5.1 or higher, and unless you fully understand what to change to use the new Enhanced Input Actions you can break the game. I started using 5.3 and am currently on part 7, I ran into extensive issues, everything worked but i lost all camera control upon closing the inventory..sadly I don't fully understand what to change to make it work as I'm fairly new to the character programming side of UE. Sadly, I won't be restarting this tutorial to downgrade my project to 5.0
@joshuawolford5808
@joshuawolford5808 11 месяцев назад
I am using 5.3 and it works perfect.
@ImageInUnreal
@ImageInUnreal 7 месяцев назад
sounds like when you close your inventory you havent set the input back to game input, i think thats all you would need to do.
@imwheeliebad
@imwheeliebad Год назад
Is this friendly with your UGM series?
@jamiedoyle5101
@jamiedoyle5101 Год назад
Hew im just curious are you able to use the interaction system you show to lets saw open doors or interact with NPC's or is it specific for just the inventory :)
@karsonnarygames2157
@karsonnarygames2157 7 месяцев назад
Hi, this will work for ue4?
@oliverbrown9634
@oliverbrown9634 Год назад
If you don't need multiplayer then not doing replication is OK right, and it will still work?
@gigasoftgaming
@gigasoftgaming Год назад
I want to create an inventory system like Skyrim's SkyUI mod, I got the interface but have no clue how to implement my items in there to have a list view, for example, if I add an item it will say Name, Type, Weight and Value, I could click on it and it will show more information on the right side, is it possible for you are anyone else make a tutorial? everyone makes an icon base inventory, it would be unique :D
@jossub4963
@jossub4963 4 месяца назад
Is this tuto works on the ue5.4 ?
@LokPendergraph-mp8gw
@LokPendergraph-mp8gw 2 месяца назад
is ok for ue5.4?
@noahlederer8587
@noahlederer8587 Год назад
why does it have to be FSlot? what is the purpose of the F
@chriswaller8780
@chriswaller8780 Год назад
Naming convention
@SandyM1993
@SandyM1993 Год назад
This system is broken. There is no default section that says "inventory size". How do I follow any further when it breaks there.
@IOP_Dev
@IOP_Dev Год назад
You didn't follow the video correctly and either haven't added the inventory size variable yourself or have messed it up somehow
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
The system isn't broken in the way you say and you have gone wrong, however the system is broken and unfixed by the end of the tutorials. It's a complete turd, unfortunately
@madridfan9946
@madridfan9946 2 года назад
Hey Ryan, would it be possible to create a tutorial on how I would code PLAYER SUBSTITUTES for any sport video game? Would I have to create 20 different actors If the team has 20 players? Many Thanks.
@madridfan9946
@madridfan9946 Год назад
@@chrispetersen3613 substitutes, not subtitles. I believe I create multiple characters.
@mkdgaming591
@mkdgaming591 Год назад
Mate maybe you can create tutorial about crafting system, and equipment
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
Yeah, let's have a buggy, broken crafting system to go with our buggy, broken inventory system
@attilaszarka8837
@attilaszarka8837 8 месяцев назад
You should always show what the result is going to be. I am not going to watch the whole thing if I have no idea what I am getting myself into...
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
Good - you'd just learn how to build broken shoddy garbage and to go elsewhere to learn the right way and end up with something that works
@HenryTheOneAndAHalfth
@HenryTheOneAndAHalfth 5 месяцев назад
You sound hella drunk at 0.5x speed lmao
@HalValla01
@HalValla01 Год назад
You're not gonna believe this - ChatGPT sent me here XD
@t3hPoundcake
@t3hPoundcake Год назад
Really fucked me up as a beginner that you didn't remove your old video series or at least mention that you re-made it like this. Now I'm completely lost and have to scrap everything.
@chriswaller8780
@chriswaller8780 Год назад
Good. The more times you have to trash everything you've worked on and start over the more times you will deeply understand methods and procedures. As for him not mentioning it, he mentions it at the beginning of this video. Based on what he was saying, it sounds like the old project was bugged out anyways. So you don't want whatever he was building before.
@t3hPoundcake
@t3hPoundcake Год назад
@@chriswaller8780 Then he needs to remove it.
@alex-qn5xp
@alex-qn5xp 11 месяцев назад
Skill issue.
@Atomz09
@Atomz09 6 месяцев назад
@@alex-qn5xpfr bruh
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
@@chriswaller8780 The new one's also bugged and broken, so what's the diff?
@slouchengames
@slouchengames Год назад
This is by far a horrible tutorial when in video three there’s new variables added to the character blue print with no explanation of doing so then using those in the first two mins leaving some guessing what to do next or spending hours trying to figure out what they did wrong when in fact it was just the tutorial being bad and not corrected or anything mentioned about the changes or things added
@TFx2TV
@TFx2TV Год назад
I thought he must have left something out couldn't figure out wy it wasn't bringing up the item as a refreenced output, thanks!
@alex-qn5xp
@alex-qn5xp 11 месяцев назад
Tutorials usually expect you to have some basic knowledge of whatever they're using, in this case Unreal Engine. It's not his fault you don't know what you're doing.
@jeramiahgentry4660
@jeramiahgentry4660 9 месяцев назад
⁠@@alex-qn5xpwell, sum of us are here to learn 🙄 happy u literally kno everything tho, good for u 👍🏾
@alex-qn5xp
@alex-qn5xp 9 месяцев назад
@@jeramiahgentry4660 That's not what I'm saying at all. I'm saying it's expected for you to have basic knowledge, especially for something as complex as an inventory system.
@FranciscoCasteloBrancoBlixt
@FranciscoCasteloBrancoBlixt 8 месяцев назад
He made a tutorial for people who don't know what to do though, didn't he?​@@alex-qn5xp
@arthurzer0head753
@arthurzer0head753 Месяц назад
I highly NOT recommend this tut series! 100% u will stuck on save/load system and it will ruin your inventory.
@AtakenSmith
@AtakenSmith 22 дня назад
I do not recommend this tutorials for beginners. It has many bugs and especially cause it's outdated. So Unreal starters I strongly suggest to not start with this. It's a great base line tho for those who already have a 10-30 hours of knowledge. So unless you know what functions, components, blueprints are don't go in this rabbit hole. Everyone else go for it, it's a great training to test your debugging skills.
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
DO NOT follow these tutorials or "stick with it" - anyone saying they're brilliant or even fully work has not tested them properly. They are a broken, bug filled mess by the end and remain unfixed
@eligijuspranskunas3509
@eligijuspranskunas3509 2 года назад
This guy makes videos shorter and shorter... i hope he will not start doing series with 1min video length, with 100 parts, with 1 video per week. obviously he is getting greedy and forcing people to pay on patreon.
@smelge
@smelge 2 года назад
Oh no, someone might need to earn money on work they do. What a terrible thought. Or, instead of being a whiny tool, maybe shorter videos work better because there's less to debug when the viewer has to go back if they made a mistake. It's easier to roll back and repeat a 10min tutorial section than a 3hr one when what you have doesn't match what he has at the end of the video. Or maybe it makes sense to confine the building of each component to a single video.
@eligijuspranskunas3509
@eligijuspranskunas3509 2 года назад
the thing is that i'm paying and apreaceate his work great tutorials, but to pay for tutorials when you have to wait a week just to see one video, in which one shows just how to create actor component and add few variables and video finished... it makes me feel like - i'm supporting him, and just to see few minutes and then wait again, wtf... it's just my own opinion. Imagine leave the car in service and paying for monthly subscription, waiting to change all tyres, and they will change one tyre per month, but here becoming even less - just removing one tyre per month... whatever..
@gamerdweebentertainment1616
@gamerdweebentertainment1616 2 года назад
@@smelge Depends on people, personally I would prefer a multihour one, start to finish different types of inventory. I'm assuming this is going to be a simple gridbased thingy again. Would be nice to also talk about equipment version, technically also inventory, bonus points if those even combined. Having certain suit gives more inventory slots etc, but I think My brain can manage it if I get basics down and memorised at some point.
@darnunt
@darnunt Год назад
We need to keep in mind that video game developing courses are pretty costly. They can easily range between 7,000 - 40,000 dollars, depending on the institution organizing them. Even if you are a Diamond tier patron (paying 50$ / month) that's still nothing compared to what you'd have to pay for an "official" learning course. Not to mention all the videos that he uploaded for FREE. I think people should be a little more grateful that amazing devs like Ryan are willing to put the time and effort into things that are either very cheap to access or absolutely free. I wouldn't have gotten far at all without Ryan or CodeLikeMe giving us all these amazing videos from which we can learn. Because I doubt I could ever afford even the cheapest course out there. The internet truly is a blessing, and these people even more so.
@intrepidoak2618
@intrepidoak2618 Год назад
Short videos are better to learn from actually.
@Rehd66
@Rehd66 Год назад
Is this the one I'm meant to watch before the rpg stats one?
@ballsackTbager
@ballsackTbager 6 месяцев назад
Followed the last one. it. did. not. work. Followed this one. it. did. not. work Thank you for wasting my time as always
@rubbakeys16k99
@rubbakeys16k99 2 месяца назад
Yep, it's trash by the end. Promising for so long, and then degenerates into broken unfixed garbage
Далее
НЕ БУДИТЕ КОТЯТ#cat
00:21
Просмотров 944 тыс.
Unreal Engine - Spatial Inventory Tutorial (1/4)
43:40
Speed Level Design - Ancient Temple - Unreal Engine 5
24:07
Unreal Engine 5.4 Motion Matching in 13 Minutes | 2024
13:41