I’m not sure what you are trying to achieve, but the material index is the index of the material slots array in mesh. So, setting material with Index 0 means you will override material assigned to first material slot, and so on.
I am changing the material of my pawn depending on the effect that I want to obtain at each moment. So I want to know if the current material is the default material (no effects) to restore it when necessary.
Ok, now I understand why only zero index works for me. It’s because my pawn only has one material.
I thought that when you created a dynamic material it was inserted into the tail. Same as an Array or List… I see now that it doesn’t work like that.
Thank you very much for answer. This has been very helpful to me in understanding how it works!!