I am trying to set a static mesh to change material by variable so when it is true it is blue and when it is false it is orange. I have the system set up for that. Image here:
I have done a test to see if this is working:
which it is but when I try to do this using this in my character:
It doesn’t work, most likely the fault of me not knowing how to use casting properly but I also simplified it and placed it in the bullet blue print instead: and it doesn’t work either. Any ideas?
Does the actor allow input?
If it doesnt allow input the right click will not be registerd.
https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/ActorInput/Blueprints/
Use the node “Enable Actor Input” and you don’t need to use a switch this way. There is a node specific for toggle things called Flip/Flop