Hi. I’m developing a simple FPS game. For weapon pickup, I have a structure (S_Items) that includes the Weapon name, quantity, and the data asset that links to the weapon. Data asset has all the information (ammo, magazine size, damage, range, and other important datas).
I have linked each data assets to appropriate child classes(BP_Master _Item has the structure variable)
Should I include all the weapon information (ammo, magazine size etc.) in child blueprints and get rid of data assets or keep it as it is(using data assets to store information). Thanks
Its totally up to you. This is really a personal preference that depends too much on your taste and project scope.
I rarely use data assets and prefer data only actors especially in the cases where I am to directly spawn those actors. They also have thumbnails out of the box so I can see my objects without additional hassle.
That’s a good question. I don’t know.
I suspect that in terms of speed there will be little difference. (if any)
In terms of memory size the Actors are a bit larger than Data Assets, I think.
Keep in mind that Data Assets (unlike Actors) are managed differently through an Asset Manager which can help if you have obscene amount of weapons.