Changing the Materials using UMG Buttons
I am new to game development and Unreal Engine 4. I am using version 4.6.1
I am trying to change the materials using UMG for some days but still I couldnt find proper tutorials or blueprints.
So I just created a Widget with Buttons like shown in the image. (I created 5 buttons namely Color1, Color2, Color3, Color4 and Color5). If I OnClick any button, the material should change accordingly.
I have also shown Level Blueprint to show the Widget.
Can somebody please help me to find the solution for this issue.
Any blueprint or tutorial might help.
Thanks in advance!
The Shape_Cone is a StaticMeshActor, I would create a StaticMeshActor variable in the UMG widget, and pass the Shape_Cone as a reference.
Then you can bind each button's OnClick event to change the material on that Shape_Cone reference to the appropriate Material using the Set Material node.
Hope it helps :)
answered Feb 09 '15 at 11:31 PM
please video tutorial
answered Mar 25 '16 at 11:55 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here