Adding a new Item
Files used: DT_Item,
BP_Item_Base
1.) Modify the Item Database
Open the DT_Item. Add a new row, the row name is the ItemID which needs to be unique.
2.) Create Child of Item Base BP
Create a child of BP_Item_Base, and make your adjustments such as changing the Mesh, and renaming it to the item to make it easier to find.
3.) Add ItemID to New Item Base
Open your new Child Actor and search for the Item structure, and add your ItemID.
4.) Assign Item Blueprint to Blueprint Drop
Assign the new Item BP you created earlier in the BlueprintDrop slot.
The ‘BlueprintDrop’ is the actor that will get spawned if an item is dropped to the ground.
I got UStruct issues after making changes to a Blueprint Structure!
To prevent broken references in the Blueprint System of the Unreal Engine, be sure to only save the Structure file you made changes on and close the editor without saving any other files (Enums are safe to save). This is an issue that can occur when working with Structures in Unreal Engine.
If you already have the issues then try to refresh all nodes on each file that gives an error by hitting File -> Refresh all Nodes
Last updated