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

龙骨动画全局如何换装?

$
0
0

@747620842 写道:

import { load } from '../extension/loader-extension'

cc.Class({
extends: cc.Component,

properties: {},

onLoad () {
this.armatureDisplay = this.getComponent(dragonBones.ArmatureDisplay)
},

start () {
const { armatureDisplay } = this
load('siamcat_tex', cc.Texture2D).subscribe(texture => {
const armature = armatureDisplay.armature()
armature.replaceTexture(texture)
})
},

onDestroy () {}
})
龙骨官方案例,
这个样子没效果啊

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88759

Trending Articles



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