How do you color a slot in runtime?
Thanks in advance.
How do you color a slot in runtime?
Thanks in advance.
I posted a moment ago, but missed the fact you posted in the spine forum. My guess is, those who spine, know what you mean by ‘slot’.
Just in case, here is a ref for other readers:
http://esotericsoftware.com/spine-using-runtimes#Slot
My recollection about spine is that you’ll have to use the runtime lib to get the slot reference and modify it yourself. However, the runtime may not provide exactly the function you need to access the slot. This means you’ll h ave to modify the code yourself.
That said, my last time using the spine runtime was months ago, so hopefully someone else has more useful data than I on this.
Ok, so here it is in case it helps anyone sometime:
local colorName = skeleton:findSlot( slotName )
colorName:setColor (r, g, b, a)
I posted a moment ago, but missed the fact you posted in the spine forum. My guess is, those who spine, know what you mean by ‘slot’.
Just in case, here is a ref for other readers:
http://esotericsoftware.com/spine-using-runtimes#Slot
My recollection about spine is that you’ll have to use the runtime lib to get the slot reference and modify it yourself. However, the runtime may not provide exactly the function you need to access the slot. This means you’ll h ave to modify the code yourself.
That said, my last time using the spine runtime was months ago, so hopefully someone else has more useful data than I on this.
Ok, so here it is in case it helps anyone sometime:
local colorName = skeleton:findSlot( slotName )
colorName:setColor (r, g, b, a)