How do I change the material of a streamed static mesh actor, through a UMG blueprint?
The UMG works as a starting menu. After I've chosen all the streamed levels, the option to change one of the materials is set to appear.
My objective is to change the material of a static mesh actor, localized in a sublevel that is loaded only after I set it to load through the main menu, through the click of a button.
The problem is that I can't find a way to reference it to my main menu. Is there any way to do this, even through Game Insntance?
P.S.: I can't directly change the position of objects and add others into the scene. For this case, I need to only alter the coding of the scene, not changing the scene objects whatsoever.I can't directly change the position of objects and add others into the scene. For this case, I need to only alter the coding of the scene, not changing the scene objects whatsoever.
I'm not sure this is the exact answer you want, but place the static mesh inside a blueprint. then in the blueprints construction script you can create a dynamic material instance that then allows you to control the material.
Then you can use the button to spawn from actor class that blueprint and set the material you want
answered Jul 03 '18 at 02:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here