I’m working on a project that I have allot of different meshes/materials that I want to fade in and out of visibility. I’m using a translucent material modifying the opacity value, doing so manually gives me the effect I want, I’m struggling with updating the value at run-time and the effect not working. I’m using a material parameter collection and updating a custom scalar property setOpacity between 0 and 1, which I have mapped into my material as so:
My understanding from docs is only material instances can be updated at run time so I have created a material instance of this material and assigned it to some objects. In the docs it says something about any parameters defined in the instance can be edited, but I do not see the ability to edit the material parameter from within the material instance. The blueprint I use to dynamically grab the material of the reference actor, adjust the scalar property, create modify and apply the Dynamic Material Instance is as follows (note opacityVal is set earlier and I know it is changing smoothly from 0-1)
The moment this blueprint path first triggers the material fades in 100%, even though the value of opacityVal is very small, eg like .1 as an example. I’m not sure what I’m missing, any tips would be very appreciated.