Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88774

如何创建dragonBones.DragonBonesAsset对象

$
0
0

@745872343 写道:

骨骼动画中指定的资源对象为 dragonBones.DragonBonesAsset和 dragonBones.DragonBonesAtlasAsset,如何在代码中创建这两类对象,求大神指点。

    if (dragonBonesAssets[i] instanceof dragonBones.DragonBonesAsset) {
             armatureDisplay.dragonAsset = dragonBonesAssets[i];
    }

    if (dragonBonesAssets[i] instanceof dragonBones.DragonBonesAtlasAsset) {
              armatureDisplay.dragonAtlasAsset = dragonBonesAssets[i];
    }

帖子: 2

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88774

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>