@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