Can I create a utility widget that displays the variables in any supplied struct?

I have created a utility widget that allows me to create an arbitrary size and shape of hex grid and save it to a data table. Thanks to the addition of instanced structs and I easily attribute any struct to the hex grid.

In my game there will be multiple different uses for hex grids, so having a couple of different structs to represent them is necessary. On top of that I’d like to release the finished utility as plugin that allows the user to attribute any struct they create to the grid and assign variable values per tile.

Excuse the rough layout.

What I would like is to have the struct variables displayed in the right when a hex tile is selected. Is there a way to populate the variables from what is in a struct programmatically rather than setting it up individually for each struct?

Have you tried the DetailsView widget? Not sure if it works with instanced structs, but worth a shot.

Was not aware of the DetailViews widget so thank you kindly for pointing me there.

The widget itself only accepts object references and getting a struct reference seems tricky. I’ve created a UObject with an InstancedStruct as it’s only variable and that works a treat.

It’s very dumb, but it does the job.

Awesome! Glad it worked! And yes, you need a property to use the struct. I think that’s correct way to do it.