Since default values of BP classes tend to reset quite often (bug), I’ve decided to store all Items/Skills/etc. info in DataTable. It works quite well, I have all info like ID (every Item BP class has its own unique “ID” String var, and grabs all the info from corresponding DataTable Row in Construction Script) name, value, damage, description, etc. in Google Sheets. After adding/changing something, I export .CSV file + import it into DataTable in UE.
However, I still need to set up default values of variables like ItemIcon (Texture2D), ItemMesh (StaticMesh), ItemMaterial, ItemHighlightedMaterial, etc. directly in BP class.
I can’t think of any way of referencing these assets in .CSV file. I’ve heard about “AssetID”, but I’m afraid it’s only for asset load management?
I could store all info straight in UE editor DataTable, but e.g. writing item descriptions (long text) would be very painful there.
Maybe it’s better to have two DataTables, something like that?:
- Items (DataTable feed from .CSV file, with info like name, description, value, damage, etc.)
- ItemsAssets (DataTable created inside UE, with references to items Icon (Texture2D), Mesh (StaticMesh), etc.)
… Then, let’s say “LongSword” BP would need only one default variable to be set: “ID” (String) (for example “longSword1”). Then it would grab all the info from “longSword1” row - from both *Items *and *ItemsAssets *data tables in Construction Script.
Is there a better way? Or maybe the two-datatables workflow would be ok?
I hope I wrote it in understandable way?