Multiple materials on Particle System in Unity 5.5

Hey there,

I used to be able to set multiple materials on the same ParticleSystemRenderer via SerializedObject and the m_Materials array property, but this doesn’t seem to work anymore in Unity 5.5.

The property is still here, but it looks like only the first material entry is taken into account (the one we can see in the Particle System inspector).

I know it’s not intended to be used that way, but it really can be handy in some cases to have multiple materials on the same Particle System.

@richardkettlewell Any idea on this maybe?

Thanks!

1 Like

Yeah we are fixing a bug with this. I didn’t realise people set this via script until recently :wink:

The second material is now reserved for trails but you will soon be able to use the other slots for your own stuff again.

Hopefully in the future we can define a less hacky setup for this!

1 Like

Ah, didn’t think about trails but it makes sense now.
Glad to know you’re working on it, thanks :slight_smile:

1 Like

@richardkettlewell Still remains unresolved… But Hope dies last… :wink:

You should be able to use materials 0,2,3,4,etc.

Only 1 is reserved for trails.

What isn’t working for you?

No problem. I found this out.
Yes, I have 5 materials, and assign it on 0,2-5.
But only this phrase : “Hopefully in the future we can define a less hacky setup for this!”…
Future is not coming yet ))

…and it is so pitty