I get the Blueprint runtime Error Blueprint Runtime Error: “Accessed None trying to read property InventoryWidget”
But actually everything works fine. Can anyone explain why such error happens and how to resolve them?
What’s the initial value of Is New Item? Is it possible that the False pin is executed once before the widget is created?
The Inventory Widget is only created and set in the variable if “Is New Item” is true. If it’s false, the Inventory Widget variable will be ‘None’, since it is not set in the False branch, hence the “Accessed None” error.
I guess the quickest way to solve this would be to move the Create Widget and Set nodes between the Initialize event and the Branch node, that way the variable will be set in either case.