Hello everyone. I’m a brand new user of Unreal and I’m running into quite a problem. I created a product configurator from scratch. I am very satisfied of how it works. I used variants to change colors, assets etc. Now I’m facing a problem. I would like to create a level that contains all the choices previously made by the configurator. That is, the product, this is a material, this is a specific asset. Here I don’t know where to start. I’m not asking for step-by-step help, but I would like some advice on where to start to continue. Thank you very much.
If you want them to be able to save a configuration and reload it the time they run the program, then you need to use a save game
Thank you very much for reply.
I was looking at the save game. Maybe i wasn’t so clear. I will like to save the choice in a file so i was looking at the way to create something like menu more simple like an inventory page wich you can see your choice and print\save like a document.
But the problem to me is how to get the variant choice, not all the variant and for any choice create a text that represent the choice. For example, if i have an object, i will like to see which object, what material(red or blue or anything) and save on following page as text of choice. I hope is clear.
More like an excel list of.
As far as I know, you can save files from the running program.
I think you have two options
-
Present the information in an attractive widget, which the user can print as a screen grab.
-
Use a plugin to write to a file, CSV or Excel for example. I couldn’t see any that write to PDF.
Thank you very much.
To call the choice of setLevelVariant? How do I do that?
You’re setting it in your code, right? You can store the information at that time.
I don’t use variants, but I assume there’s some way of ‘interating’ over them, otherwise you’ll need to store the options as you go along.
Yes. Thank you.
This is very vague random rubbish, here’s my first ever attempt at trying to read a variant set, but you would need to know what you were looking for
So… probably easier to save as you go along
Oh really thank you very much. I appreciated it.
Hi. I’m again here. I need to connect something on For loop? And in your example, myvariant is a variable or something you created. Sorry for noob question. But I’m a noob.
Great job on the configurator. To save the choices, try saving them in a file. You can use a file to keep track of the product, colors, and assets chosen. That way, when you want to create a level, you can refer back to that file to know what choices were made. Starting there might help you move forward
Like I say, that was a totally wild example, I don’t think the code will actually work.
It would be much better to save the user settings as they change them
Ok this is an idea. But there is something to learning that move me on this direction?
This is my actual variantManager
this my ui containing the logic apply to button
This is my UI on load
It seem to me that I have to take all the variant choices. But for each one i get all. Not only the choices. It’s so complex to me. I need to follow some advanced tut. Thanks guys I appreciated you all.
Hi. I’m back here now the requested is more consistent and i never figure out how to do it. It’s seem that I’m so close to the logic but never get the results. At this moment the simple thing is i got to print the choice, but for any button print string works so i know is stupid. So to be clear i need for any choice made on variant by button that control the LevelVariantSets i will like to save on a file, csv excel even json but i need a structure. SO i made a structure simple two entry. Now i’m lost. I really appreciated your help and i made this car config in 180 Hours by 0 knowledge on unreal , only maya about 20 years so i’m proud of me and thanks to helping me. THis forum is full fill of benchmark but this is difficult. So thanks to everyone would help me thanks @ClockworkOcean you made me some hint really interesting.
I’m try to explain a little better with some images.
This will be my data table set. I don’t know if it is the better approach for this scenario.
For each button exec that are Switch on variant by name i will like to get a text box. I’ve created the text box and try with this connection. Following message
Unlukely i get only the first in the row color no matter the click i do. It doesn’t make sense it seem i don’t get nothing that make sense here, not what i want.
FOr example. On your graph i don’t know how to get the red. It seem like an integer negate plus a pin. Sorry if it so stupid
?
Thank you. Could you be more specific? I will like to save it in a file but which the procedure is? WHere i can look at example? Thank you