Can you please provide links to github repositories or YouTube videos to understand how to use DataAssets
Hey @blAddddDe!
Try a few of these tutorials! Also try to read the documentation first so you can connect the documentation to what they’re talking about.
Disclaimer: This link is not associated with Unreal Engine, Epic Games, or their partners.
I’ve seen this, but I still don’t understand what’s the point of using DataAssets if there are DataTables?
Well, if you’re using a small amount of data, there’s no reason to not use a Data Table!
However, if you’re using a rather large data table, they can take up more and more processing power as it starts at the top and goes one by one when searching. A dataAsset is essentially just a single row of a data table, and instead of using a method of search and return, you can tell it to just use that DataAsset.
It’s essentially a less cumbersome DataTable, limited to a single row, so it takes up less space and less processing power to use. As a frame of reference, I’ve seen a 4000 row data table and it was getting called 10 or so times a minute, and it was causing frame drop when there were multiple calls at the same time. Using DataAssets there would have saved us a lot of grief, though it would have taken a lot of time to change over to DataAssets (they weren’t an option yet).
You can use multiple data tables to ease the lookup costs. You just need to define an items “Type” or “Subtype” to sort which table to use for lookup.
I have around 150 “Items” spanning 7 base types. The largest group can be subtyped.
e.g. Weapons → subtype [AR, SR, DMR, SMG, LMG, Pistol, Shotgun]