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.
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.
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