Ok I found the issue I think, it’s also a restriction of how the GUI system works, similar to the request to add a 2nd texture.
- in go.set() “…or a material constant”
- in gui.set() “…only these named properties identifiers are supported”
So it is impossible to set the “palette” material constant of the shader even if you can set the material on the box gui node.
Hopefully one of the devs could weigh in on which feature is easier to add - multi-textures or setting material constants?
I think I will just work around this for now by implementing my HUD in the game rendering using sprites.
Actually I’ll post this in Questions…
EDIT: For anyone reading in the future, the answer is no, use the GUI as is. In my case I just made an icon to represent the players and a colour variation on each, all in one atlas. The GUI can pick the right image from the atlas based on the colour index I was already using for the palette index.