Closed zzzxxccvv closed 6 years ago
Hi, dragonBones runtime can not support set color by dragonBones api yet. You could modify color by unity api.
var unityDisplay = slot.display;
...
//set unityDisplay color by unity api
Thanks.
var display = body.armature.GetSlot("hunter_hat1_png").display;
GameObject go = (GameObject)display;
MeshRenderer re = go.GetComponent<MeshRenderer>();
re.material.color = Color.red;
It works
I want change the color of the armature like this
But it does not work immediately, just have effect on the next time creating the Armature in the Unity Editor.
I guess it calls the wrong api some where for Editor or I used in a wrong way :(