I’ve got an inventory-based project where the player has a library (inventory) of furniture assets that can be placed into the world. I followed the UMG tutorials to get me started on adding objects to the inventory and having their assigned image appear in custom buttons in the UI, and I put that function in the Begin Play event of the template object to test it out. It works great, but Begin Play works when the assets are placed in the level at the start of the game. I’m totally new to Arrays and Structs and don’t know where else to put this function about making the inventory. Here is the event inside the Template blueprint that each individual item is based on.
So I need to have some other blueprint (MyPlayerController?) get this furniture item and then add each of its children to the Library struct. It sounds pretty easy, but I’ve never done something like this with objects that don’t exist yet.