Accesed none error I can't quite understand.

I’m setting up variables that will be useful for my equipment system, but for some reason it has an accesed none error trying to read “widget main display” when setting up an array to hold the inventoryslot buttons. The reason I’m confused is that my char and thus the widget main display should be set at the point im trying to set the array, but I’m kinda new so I’m prolly missing something

Any help much appreciated =)


Widget main display is set to None (it’s not initialized). You are either calling the function before the widget is created or it is just an empty variable that is never set.

If you are running this code on a server then it never creates widgets.

You should move this logic from begin play into a custom event, example “init Inventory”

Inside of your character after you create the widget and set “Widget main display”, then call “init inventory” on your inventory component and it should initialize in the correct order.

1 Like

Exactly what I was looking for. Appreciate it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.