Count structure members and iterate through them

I currently have prints for debugging actor properties. But as my codebase is growing this is becoming way too messy.

I want to use UMG to show properties (since I will also need to use this in my game) it’s just as well I get on with it.

The majority of my actors have structures carrying the data.
The problem is I want to programmatically iterate through all variables in a structure in writing them into my widget.

there doesn’t seem to be a function in structures to support this behavior.

If I use regular variables I need to “hardcode” everything.

I’m trying to get a way to print all the variables out to UMG

Thanks in advance

1 Like

I don’t think there is a ‘for each members in struct’ node. Unfortunately, you do have to break them up manually if you want to put them on the UMG.