Hello everyone! I’m getting a Blueprint runtime error: “Accessed none trying to read property inventorypanel” Node Clear children etc etc…
So, I have a BP Widget called Menu and I renamed my uniform grid panel; inventory panel and set it as a variable in my widget. Other calls in different Blueprints work towards it but when I try to clear children in my pickup item function under my character Blueprint it comes up as “none”. I took a closer look at the default value of my variable, and it says “None” there’s no way of changing the default value? The default value shouldn’t be able to change it should just be my uniform grad panel but there’s no way of changing it to that value. Please help!
You’d need to demonstrate how this is done.
How do you set the value of MenuRef
?
This is just a generic node that works will any panel that can host widgets. Do you get errors even though the isValid
query succeeds? And to clarify:
“Accessed none trying to read property inventorypanel” […] I renamed my uniform grid panel; inventory panel and set it as a variable in my widget.
What is inventorypanel
, how is it created and referenced? Are you sure you did not create an additional variable with no value?
Menuref is set to my “Menu” Widget as an object reference as a variable in my thirdpersoncharacter blueprint.
I don’t get any errors from my isvalid query, but I get errors when I want to clear children. It’s the same error as above. I do get another error but I’m not sure if its related. It’s from my standard macros and it’s a for loop macro.
InventoryPanel is already set in my “Menu” widget. Its a UniformGridPanel that I set as a variable.
Could you show the details panel that variable?
Does this mean that you flagged the widget as isVariable
at the top of the details panel?
Yes
I was able to resolve it. Apparently the Inventorypanel needed to go in isvalid first.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.