- Home /
User Interface for game object customization.
Hello, I'm looking to create a simple customization menu for character or vehicle where you can change the armor/wheels, set materials and etc.
What would be the best best approach in your opinion to create such UI? Would it be reasonable to have a separate UI for each character and show only the UI the corresponding UI or is there something more elegant than that (for sure!). Note that the menu's buttons will be the same for each character.
Here's an example:
Vehicle 1: - Menu for setting material for paint - Menus for changing wheels
Vehicle 2: - Menu for setting material for paint - Menus for changing wheels
Vehicle 3... same menus...
Now, when I select Vehicle 2 for example, I hide all other UIs except the one for Vehicle 2. When I select Vehicle 1, I hide all other UIs except the one for Vehicle 1 and so on...
I guess that would work, but I wonder is there a simple way to have only one UI set of buttons which to affect the visible vehicle only?
It would be worth spending some time to read about polymorphism
If your vehicles all inherit from the same base Vehicle class you will be able to use the same UI for all vehicles.
I guess it is a good subject for the forum thread rather than answers. I have started a similar thread on the forum: https://forum.unity3d.com/threads/configurator-project-template.449114/ $$anonymous$$y assumptions are similar, but the other way round. I have provided material choice menus. You can assign selected materials to the applicable objects from the scene. I would be grateful for any feedback on that.
Your answer
![](https://koobas.hobune.stream/wayback/20220613144029im_/https://answers.unity.com/themes/thub/images/avi.jpg)