Material Opacity Mask Value

Hello,

I want to create dissolve material and when it completly dissolves. I want to fire the event onDissolveComplete. I am using opacityMask for it dissolving and wanted to know how I can read the opacityMask value from the given material instance.
PS. overall I want to know if it is possible to read scalar/vector values from the material.
Couldn’t found anything about it.

Thank you!

Hi,
You can create a dynamic material instance and read a value from there with get scalar/vector parameter value: Get Vector Parameter Value | Unreal Engine Documentation

Thank you for reply.
With this aproach I can get custom made parameters. but I can’t get Values like Opacity or Opacity Mask.

There should be a value that is changing in the dissolve material that you can use or calculate the time the dissolve material needs to finish and just use delay.

Hello!

you can do a script like the following

On the event you want to start to dissolve the material, change the parameter of the Ammount of the dissolve, and have another variable that contains the float of the final dissolve, and if the current dissovle ammount is less or equal to the final dissolve ammount, you can fire the event OnDissolveComplete

in order for the dissolve ammount to animate, you should use a timeline and a lerp node

Hope this helps!