Change Model In Game with Widget Buttons

HI guys.

Urgently need some help!

I’m trying to set up a widget that enables me to change a building model in an Archviz level (with buttons or slider) to a different model or series of iterations in the same location. But I can’t find a clear tutorial anywhere and I’m running out of time.

If anybody can guide me through this step by step it would be fantastic!
I’m happy to chat online via call or video as well if that is useful.

Thanks

The method behind it is a generic one.

  • keep the meshes in an array
  • dispatch a widget button click that increases / decrease an index
  • fetch from the array by index → apply the mesh to the currently selected static mesh component
2 Likes

If you are looking for a drop down menu button solution, an enum on the blueprint actor and a combobox in the widget would work well for multiple models.
If it’s just two, a boolean on the blueprint actor and a flip flop on the UI button will get this done in no time.
For the slider, you truncate the float value into an integer and go for the solution suggested by @Everynone.
The Widget sliders have “steps” and I assume you would put that to 1.0 to keep it “snappy.”

2 Likes

Thanks guys, managed to get help on the unreal discord which was close lit to what you both suggested.

HI Akouti11, I am trying to make game allowed players modified a 3D model during the game runtime. I guess it is quite similar to your problems. Would you mind tell me more details about how you finally realize this feature?