I’ve been working on a customization system for my game and i’m on a dead end.
Here’s some info about what i’ve done so you can visualize it better:
All characters are children of the same master character. I use a data table to organize, store and call data of those children characters. Each row has an integer value corresponding to a “big group” of similar characters (Clade) and a structure containing the data for the specific selected character assigned to that row (Species).
All characters use instances of the same layerblend material, with a RGB mask as base texture parameter and different vector parameters for its channels.
When starting a new game (single or multiplayer) the customization level is loaded and the screen shows a widget with buttons for the different Clades.
After selecting one, the first Species whitin that Clade spawns in that level.
Then a new widget shows the Species name and several buttons: two of them switch Species in the current Clade, some others open a color picker with different linear color values for the vector parameters, and the last ones change the skeletal mesh for the accessories selection.
Every button works and their results are applied on the character while it’s in that customization level.
The master character has the logic to create the dynamic instances in the construction script, a custom event gets the selected linear colors from the widget and applies them on the different vector values, and another custom event sets the selected accessory using an integer to switch between the different options.
After confirming all the customization the game level is loaded and that selected character spawns, but it has the default colors from the original material instance and no accessories.
Now the issue is that I can’t manage to store and apply the customization from there to the game level the same way it works with the character itself (the character loads correctly too when i load a game instead of starting a new one so the save game blueprint works). I’ve tried taking the linear colors from the widget to the player controller events that save the character class and nothing, same goes for the dynamic materials.
Any idea how can I do it or if there’s any mistake that i can’t see clear?
Thanks in advance.