[Solved] Element text color change through script

Hi,

 When i am changing element text color through script.

It is not changing the color of the text but in console the color is updated.

this.entity.element.color.set(0.3,0.6,0.9);

I’m not getting this is the correct method or not.

Can you please help me.

Thank you.

It works when you set it directly, like below.

this.entity.element.color = new pc.Color(0.3,0.6,0.9);

Thank you :slightly_smiling_face: @Mal_Duffin