-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
It would be very useful if we can affect various slots in a dragonbones asset via gdscript.
Ability to set slot opacity, set blend mode, even replace slot image.
These features seem to be missing in the runtime at the moment, as the methods are not exposed to gdscript
DB provide lots of API to support Avatars System for different requirements.
- change slot display index
slot.displayIndex = xxx- change slot display directly
slot.display = xxx- change slot display from db factory (to ensure pivot is set by designer in DBPro)
armatrue.replaceSlotDisplay(xxx,xxx,xxx, slot)- change mesh texture
armatrue.replaySlotDisplay(xxx,xxx,xxx, slot)- change textureatlas
armature.replaceTexture()
here are some examples
https://www.csharpcodi.com/csharp-examples/?api=DragonBones.Slot
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels