How to I dynamically switch one texture in a ui widget to another?
So I'm trying to create a stealth game, in which a player is chased by a monster constantly and want to give feedback to the player on if the monster can see the player, when he can't see the player this image is displayed on the HUD:
And when the player is seen I want to display this image:
I can get the idle green eye to appear when its a static material, but this doesn't allow me to change the image and leaves me with an output that looks like this:
I supect that the issue could be one of two things:
This is my Material Graph:
And this is the graph where I set the widget to the view port in the player character blueprint and material as dynamic:
Any help in this would be very much appreciated, thanks!
asked Mar 25 '15 at 01:13 PM in Using UE4
Follow this question
Once you sign in you will be able to subscribe for any updates here