A GDExtension plugin to add DragonBones for Godot.
Clone this repo with submodules.
Ensure you have "python", "Scons", and a appropriate c++ compiler.
Navigate to the root of local repo, run compile command, for example: For debug:
scons target=template_debug debug_symbols=yes
For release:
scons target=template_release
Please refer the build system system of godot-cpp for more compile options.
If compileing is successully, you can get the compiled plugin in demo/addons/gddragonbones
.
If you are not compile by youself, you should download this plugin and plug it into "demo".
This repository is improved from gddragonbones.
DragonBonesFoctory
:
DragonBones
node.DragonBones
node:
DragonBonesArmature
.DragonBonesArmature
node:
DragonBones
node which accroding to DragonBonesFoctory
, don't instantiate it by youself.DragonBones
node, which it's type is DragonBonesArmatureProxy
, name is "main_armature", will be indicated as the main DragonBonesArmature
node. If main armature have child armatures, it will have a "sub_armatures" property in DragonBonesArmatureProxy
.DragonBonesArmatureProxy
is editor use only!! Don't instantiate by youself, and don't access relevant objects/properties, They are unavaunavailable in release build.DragonBonesSlot
and DragonBonesBone
to do some advance operations through DragonBonesArmature
(but this is lack of test.).I'm not familiar with DragonBones, so there maybe have some wrong concepts in my code. This repo is create for my personal project, and it is useful enough, so I think I will not do more optimize anymore. Of cource, if I encounter bug, I will try to fix it. If you have any improvement/repair, welcome to commit your pull request.