Change node color (bug?) - 有中文

I’m using Cocos Creator 2.4.6, somehow I try to change the node color via script is not working. I remember it used to work. For debugging, I set node color default to (170,170,170) then using script it will increase to 255 in “duration”.

我在使用Cocos Creator 版本 2.4.6 2D, 我想要透过typescript更改node的颜色但是不能,我记得好像以前是没问题的。

if you change color with node.color.setR/G/B. the node’s material can’t notice this change.

use this.node.color = newColor; instead.