I’m a student and I’m incredibly new to using Unreal, but I want to animate a mesh’s opacity so that it fades in and out of view. It currently has a texture applied to the material connected through the opacity channel (sorry if I’m using incorrect wording, a picture is included) and basically I want to animate that texture so that the mask goes from its original color to black and back again–it’s a ghost, and I want it to fade into view in time with a heartbeat sound.
Multiply the opacity texture by a float.
Expose the float as a parameter. (right click convert to parameter)
In your ghost character on begin play get the needed material and make a dynamic material instance out of it (“Create Dynamic Material Instance” Node), then promote that to a variable.
Modify the float at runtime through in the material instance via "Set Scalar Parameter Value.
Set the parameter name to the same name as you specified in the material parameter.
You can animate with a timeline
An example of changing it via timeline
You would ofc trigger the timeline as needed via events in your game.