- 수정됨
Runtime color tinting?
For my current setup, some of the items on the character can have different colors- so I save it out white, and in LibGDX, use the "batcher.setColor " before drawing the bottom layer.
Is it possible to do that now? Or set the color before having it render one of the items? If not, is there a way I can control the rendering to be able to do it?
I "fixed" it by changing the slot's 'color' variable to public (and removing final). I tried using a setter, but I needed to tween the color, so I just ended up making it public.
You can change a slot's color by mutating the returned value. Eg, calling slot.getColor().set(...).