Furniture Colour Changing Interaction

I have this idea where you can interact with a furniture and then hold the rightt mouse button, and a color palate appear, and you can toggle around then color palette with the mouse barrel as long as you hold the right mouse button. Anyone know how to do this?

Hey here, that’s pretty easy to do, when you press the RMB you do a trace and if you hit a furniture blueprint you spawn a UMG widget that takes a furniture blueprint as a parameter and that lists the colors available. Each color will be buttons that when clicked will tell the furniture reference what color to change into. To have the furniture change colors you need to create a material that takes a parameter for the color, then on begin play you create a dynamic material and set it on the furtniture mesh, when you pick a color you set the color parameter to the color selected.

224373-bcf.png

i’m a beginner so…

Great image haha Check this to learn more about line traces. For UMG you can use something like this. For info on materials and dynamic materials you can check this playlist and this video.