Sorry to be here again, but unfortunately colorRgb isn't working. There are no more errors, but the Sprite remains gray. here's what I have (I have checked what the console logs print and copy pasted it over):
console.log("pricolor is: " + pricolor); // PRINTS pricolor is: 10439f,874ccc,c65bcf,f27bbd
// PRIMARY
switch (pripattern)
{
case "Plain":
const pricolor0 = hexToRgb(pricolor[0]);
console.log("RGB color to use is: R:" + pricolor0[0] + ", G:" + pricolor0[1] + ", B:" + pricolor0[2]); // PRINTS RGB color to use is: R:16, G:67, B:159
let priinst = runtime.objects.CR_FelNoc_PriColor.createInstance(5, positionx, positiony);
priinst.colorRgb = [pricolor0[0], pricolor0[1], pricolor0[2]];
// Sprite remains gray. No errors or Warnings.
break;
}
The instances are created and placed, so they definitely exist.