Hi,
I try to set 2 colors in my custom shader on a UITexture via script. The shader is nearly identical to the "Unlit - Transparent Color" shader except there are 2 additional
color properties and small changes in the fragment shader to make use of those.
In another thread I read it is recommended to change custom shader parameters via "widget.drawCall.dynamicMaterial".
I tried this but now I got the problem that the set parameters are reset every frame.
Even if I set the colors in Update it seems like every second frame is rendered without colors set.
So how can I persistently set custom shader parameters via script?
Best regards,
Pascal