I want a player to become invisible when they push a button. I’m using the default 4.8 character and it’s material is set up differently then I am used to. I haven’t used material attributes and can’t get this material function to work. I’m using the Fresnel dissolve and want to do this when the player hits a button.
I wasn’t sure if I should put this in blueprints or rendering so I put it blueprints because of the connecting input to a material.
You can do this using Dynamic Material Instances, just drag your mesh component into the BP graph, and from the mesh do a Create Dynamic Material Instance, and then that will allow you to set different materials whenever you want. The “Element Index” input is the index of which material you are setting, so if you have a tree, and the trunk is material 0, then index 0 will set the trunk’s material. You can also change individual parameters of the material you are setting it to, so if I have my character, on Event Begin Play, I can do this: