游戏开发
slot 标签描述

龙骨的图片是绑定在卡槽上的.并且是一对一的关系.所以可以通过对骨架的卡槽上绑定的图片的更换来实现另一种换皮的效果. 换皮的核心代码: //针对slot设置其新内容 privatesetNewSlot(slotName:string,textureName:string) { //方法1 varslot:dragonBones.Slot=this._armature.getSlot(slotName); varb:egret.Bitmap=newegret.Bitmap(); b.texture=RES.getRes(textureName); b.x=slot.display.x; b.y=s...

  RlWeLU85QNwT   2023年11月02日   65   0   0 骨骼slot换皮Egret