Change colorMap but don't work

My game has a lot of roles.

I want every roles to have different particle when they die.

So I use script to change particlesystem’s colorMap'blue')[0];;

But it doesn’t work.

When the role die , the particle’s color is white which seems the script doesn’t work.

I also test with this script'blue')[0];;

But don’t work,too.

Could anyone help me?

Thank you.

If you need more details,tell me.

Does this help:

Created for this thread:

(I’m a bit confused because you started that thread!)

I’ve just tried this in a project and the code you have written works fine.'blue')[0];;

Sample project:

1 Like