创建骨骼Armature选择动画animation
【Unity&DragonBones】DragonBones运行库导入Unity工程文件详细教程以及解决办法
//这是例子代码中的一段
{
void Start()
{
// Load data.
UnityFactory.factory.LoadDragonBonesData("Ubbie/Ubbie"); // DragonBones file path (without suffix)选择DragonBones的程序的文件路径
UnityFactory.factory.LoadTextureAtlasData("Ubbie/texture"); //Texture atlas file path (without suffix)选择图片集的文件路径
// Create armature.
var armatureComponent =UnityFactory.fa

本文详细介绍了如何在Unity工程中导入DragonBones运行库,并通过示例代码展示了创建骨骼动画的过程。首先,通过UnityFactory创建ArmatureComponent组件,将其设置到一个新的空物体上,调整其局部位置。同时,建议参考DEMON中的HELLODRAGONBONES场景的.CS文件进行学习。
最低0.47元/天 解锁文章
7488

被折叠的 条评论
为什么被折叠?



