Accessed None Trying to Read Property UMG

Hello! I’ve ran into an issue with UMG that I am unfamiliar with.

I have two widgets: One that is a weapon wheel, and another that displays the weapon you selected on the screen. I’ve programmed it so it’s on a Switch on Int. It works when it’s just in One widget (ex: placing test buttons to change the integer number when clicked) but across two widgets I constantly get the “Accessed None Trying to Read Property” error.

If anyone could help explain why I get this error or what I can do to fix it, I would appreciate it!

None means that the property wasn’t set. The variable contains null data. You need to give it a reference to the object you want. You can also do a IsValid check on the property to make sure it has been set before using it.

Hello! Thank you for your answer. I’m new to Blueprinting.

Is what I have as reference not enough?

This is currently how to reference the integer from the other blueprint. How else would I do it?

And where would I place the IsValid reference? I’m unfamiliar with that node.

Thank you!

  • IsValid checks if a reference is valid, its a boolean output from an object input.
  • When you get the error, click on the node where it says it is happening to find where this might be needed.
  • If it is in the window you shared here, it may be possible that the Current Weapon has not be set, and holds a null value.