Can't assign dynamic material to UI image component (see pic)


Can’t seem to figure this out. Works on a button component but not on an image.
Error is: Cannot pass a read only variable to a reference parameter.

image

Would that work for you?

1 Like

I need to access the parameters on the material. So i guess it has to be a dynamic material instance. (Still learning :slight_smile: )

So the above would work more than fine then.


So I tried it out like this … and IT WORKS!!
Thank you :smiley:

1 Like