-
Notifications
You must be signed in to change notification settings - Fork 14
How To
New Blueprint Class

Set WorldActor as Parent Class

Set the ID

We could initialize all the item by hand, but on this project, they are all being loaded from one DataTable using the previous ID.
More details about updating DataTable in the next section.
Recommended to set Static Mesh, to be visible on Client, otherwise, it will be only visible on Server.
If you are playing on Standalone Mode, it's recommended but not mandatory

Finally, it is possible to drag and drop our new item easily into the world.

New C++ Class

Set WorldActor as Parent Class

Set a name and Create Class.

On code, it will need necessary to set ID and StaticMesh for that Item.
We could initialize all the item by hand, but on this project, they are all being loaded from one DataTable using the previous ID.
More details about updating DataTable in the next section.

Finally, it is possible to drag and drop our new item easily into the world.

If you are loading the items' information through a DataTable, you will need to update it with the new item.
Add new row for our new item

Set all the information that you wish.

Both on BP and C++ Class, it's only necessary to set our ID.