I set two array (two member) into info structure so it has two member to show two button in viewport. I want to add member (addmember event) to insert info array when pressing ‘Z’ keyboard. It was supposed to get three member. But after Z enter and then I key enter (to show inventory) it dose not show up three member. I,m getting error log. Blueprint Script are give below there.
What is this issues and what is best way to solve it?
But after Z enter and then I key enter
(to show inventory) it dose not show
up three member. I,m getting error
log. Blueprint Script are give below
there.
if you’re doing it in this order, you’re AddingMembers to an inventory that does not exist, you’ve yet to create it - hence the errors
if you keep pressing I to create / remove the inventory, you’re actually creating a brand new inventory every time you press and destroying the old one
you’ve created the Inventory reference variable - use it; avoid pulling data from Return Value - there’s no guarantee the data is valid
we can’t see the critical bit here - what does AddMember do?