Setting Dynamic Materials Parameters Not Working As W

alt text

alt text

So I am trying to swap out the textures used in materials at runtime, since I would rather have one material with all of my parameters instead of having a library of materials with replicated parameters. This is however proving to be problematic on the engine’s side.

When I run my game the textures are totally mixed up and not at all what the same textures look like in the material editor. Any solutions or at least explanations for what is happening?

Thanks in advance for your help.

Element index 1 means 2nd material in mesh. Use 0 index if your mesh have only 1 material.

That unfortunately does not fix the issue. The only reason I changed it to index 1 was because index 0 was causing the same strange behavior and I wanted to see if 1 would do anything different.