Skip to content

feature request: ability to set slot alpha and other slot methods #5

@blurymind

Description

@blurymind

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.

  1. change slot display index
    slot.displayIndex = xxx
  2. change slot display directly
    slot.display = xxx
  3. change slot display from db factory (to ensure pivot is set by designer in DBPro)
    armatrue.replaceSlotDisplay(xxx,xxx,xxx, slot)
  4. change mesh texture
    armatrue.replaySlotDisplay(xxx,xxx,xxx, slot)
  5. change textureatlas
    armature.replaceTexture()

here are some examples
https://www.csharpcodi.com/csharp-examples/?api=DragonBones.Slot

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions