blueprint

Add to Inventory (Player)

  • Exposure: public
  • UE Version: 5.6

avatar author

Marina.Evangelista

June 17, 2025, 2:41 pm

This is one part of a two part code. This part should be on the Player blueprint, while the other part will be on the item blueprint. This code also requires a Blueprint interface, where you should create the function Add Item and give it an input called "NewItem". It should be a string type, single. The "Inventory" variable is an array of strings.

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v