Context:
I am trying to create a basic inventory system that has 5 slots and can pick up the BP_Item one by one (no multiples, just single items), and then drops it one by one too. I went through a lot of videos and forum questions around the same, and figured out a basic Actor Component that can have the basic functions of adding and removing the item, using Blueprint Interfaces to try and remove casting.
The Line Trace helps pickup items and can trigger the transfer of data across from BP_Item into the inventory ‘actor component’
My questions are around how Data is pulled in from Data Assets, Structures or Data Tables, or any combinations of these. I want to learn a good setup of using data throughout (I am not a coder, so that’s why intending to create a toolkit for myself that I can expand out from)
Questions are around the theory, nodes and variable usage across. Data Structures and Data Table is secondary, but information for using that in the same context will also be helpful.
I keep making system diagrams as documentation for all systems I am learning, and in this one I want to understand the pink/red circled areas.
The yellow parts (DATA) are just shown in general, they are not connecting specifically to anything on the left yet.
Some Questions to set the context better:
-
As the data is read only, if I am spawning copies of BP_Item using different data assets, in theory how does that work? And what nodes are used to get that? Is it something like the save game structure where I can ‘get game data’ and then ‘save game data’ by overlapping the older variable data in the save game file? (So like it comes in, and then goes out another end?)
-
If I am using Data Assets as my primary method, is there a way to save entire data assets in arrays when picking it up. I found blueprints of how Data Structures can be picked up and put into inventory slots, so I am guessing the same can be done for Data Assets?
-
There are 10 BP_Item copies that are lying out in the open, which have data from Data Asset 1, 2 or 3. So how to spawn these 10 while attaching them to different Data Assets, using nodes (let’s say in the Game Mode BP)? Are there specific nodes for that? (Same as Question 1)
-
Am I thinking in a wrong way about something here? If so please do correct me.
Thanks