• Runtimes
  • [MonoGame] Slot don't change color

Related Discussions
...

Hi,
I try to change color of one single slot, for example
skeleton.Data.Slots(0).R = 1
or
skeleton.Data.Slots(0).A = 0.1

but do nothing
best
Cristian


UPDATE:
I have see that in SkeletonRenderer.cs row 160 where there is // calculate color
you calculate color reading from variable slot.A/R/G/B/R2/G2/B2
but I thing must read from slot.Data.
example slot.Data.A
Best
Cristian

SlotData holds the setup pose (for all skeleton instances sharing SkeletonData). Slot holds the current pose (for a particular skeleton instance). Rendering always uses the current pose. You can reset the slots to the setup pose after changing the setup pose slot color (SlotData), or change the Slot color instead.

Image removed due to the lack of support for HTTPS. | Show Anyway

HI Nate,
thank for information.
But then I did not understand how to change color of a slot, whitout change without changing the SkeletonRenderer source as I suggested?


AHHHHHHHHHHHHHHHHHHHHH
skeleton.Slots.Items(0).A
I was in the wrong variable, I used skeleton.Data.Slots(0).A
sorry!!!!!
thank you