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.








