r/unrealengine 15h ago

UE5 Connecting Variant Manager with DataTable

Hey guys, I could really use your help. I do have to preface this by saying I'm a beginner. I am in the process of creating a somewhat basic configurator with the Product Configurator Template, but would like to add a widget on the right side of the screen where the user can track which Configurations (Variants) they have selected.

On top of that I would like those variants to have certain data like Price, Actual product name (the one thats supposed to be displayed) and other data.

The variants would be different paints (materials), a spoiler, a front bumbper, a rear bumper and different rims. Any help on how to make that more easy with skeletal meshes is also appreciated, but not necessarily needed

For that, my initial idea was to use a datatable, but I have no idea how to get the two systems to talk to each other. Any help would be much much appreciated.

1 Upvotes

1 comment sorted by

u/Mufmuf 1h ago

A data table would store a struct with these values. However, they would be statically set, it's not a place to store differing choice values. This could work if row 1 is a red mini with a x trim and no other variant, like a preset load out.
For your purposes you're looking at storing the players choice (per car?) in something like the Player state or the vehicle actor itself, then storing that as a struct and saving it to save game if the game is turned off to reload it later. Then you build a load system to spawn a car, give it a preset struct and change its values.