I’m trying to make different outline for objects in case of cursor hover.
In other words I reading value of public enum and then switch between materials. I make 2 material instances: hithlight_container (green), highligh_enemy (red).
So if I point enemy, the red outline appears, then I point container, green outline appear. And when I point enemy again, green outline appear.
But if I start the game, point container, see green outline, when point enemy, see green outline again. I tried to set various weight, but the problem is not gone. Please see the screenshots and sorry for my bad English.
I got working solution for UE v.4.17. Here is the youtube video:
https://www.youtube.com/watch?v=4taY47ZCzzQ&feature=youtu.be
Also I can show material scheme if you ask for it.