Hello, I'm trying to change character color when he colide with object. I set IF COLIDE with chosen affected afect (in my case ChangeColorObject) and connection with script let _assetName; var _enabled = false; let _ent; function init(){ _ent = this.attribute('Asset Name'); _color = this.attribute('Color RGB'); } function signal(name, value){ _enabled=value; if(_enabled){ _ent.setColor(_color.x,_color.y,_color.z); } } What I missed?
To simplify, have you tried just using the Set Color node? Also, are you on a PC or a Mac? If PC are you getting any errors in the JS log window? "let _ent" should be "var _ent". Probably true of _assetName too, but I don't know how you're using it.