• Runtimes
  • XNA change color at runtime

  • Bearbeitet
Related Discussions
...

Hi,
for example I get the mesh with

mesh = skeleton.GetAttachment("head", "head")

I have mesh.r/g/b/a
if I change value nothing is happening
how I can change a color (tint) at runtime of an a mesh?
regards
Cristian

If you change the mesh it will tint the attachment for all skeleton instances. What values are you setting? The range is 0-1.

You can also the color (r, g, b, a) on a slot, which will tint the attachment only for that slot. Note that slot color keys may overwrite your color, in which case you may want to set the color after applying animations each frame.