I created a widget BP and promote to variable in my PlayerController, but after doing this, I couldn’t access any variable(particularly, I wanted to use the W_InventoryGrid) and event in my widget.
So I just promoted the W_InventoryGrid in my PlayerController directly from the return value, it temporarily solved the problem. But now I want to access an event in the W_InventoryMenu, and I still can’t access it. I wonder where I went wrong and how I can fix it.
Yeah, it’s a gotcha. Promotion looks at the class dropdown at the moment of creation and makes a variable of the type it finds. If you change the class later on, the result will not propagate and update the variable type.
Which is actually great, it would mean a whole world of pain across the project if that happened.