Change color of a object

hi noob here :slight_smile:
I want to change color of a specific object , i have a array of circle and i want to change only one or two circle’s color not all of them , the (object.material.Color.setHex(hexa)) change all of them, i search but i didn’t find
help thnx

The easiest solution is to create two materials with different colors and use them in alternating fashion.

it will be hard for my situation because i have a array of 42 object and i have to change the color randomly


So you’ll have 42 separated materials, one for each object.

i can’t do otherwise ?

To be honest, this is the only way I know in this case :slight_smile: But maybe the others know something else :slight_smile:

ok thnx a lot