Hey there! Im new here in UE5 and Im trying to learn about inventories.
I have read about ways to do it in blueprints using an structs array and in cpp UObjects.
Using CPP grants performance.
What’s the best profesional way to create invetory system using cpp?
In my case I want to create the inventory as actor component.
Write out a description of what you need it to do.
Write tests that will make sure that the system does what it needs to do, per the written spec.
Write code that does it.
… same thing for every aspect of software engineering
Native code is not a magic performance bullet, neither is blueprint a magic performance killer.
“Inventory” could encompass a whole lot of different things. While on one hand, you probably mean a general system for the player or AIs to carry items on their character. On the other, we have absolutely no idea what you need it to do.