大约有 27 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0026 秒)
如何通过名字 或 索引播放 spine 动画 var skeleton:Laya.Skeleton = new Laya.Skeleton(); skeleton.load("spine/feiyangyang_2.sk"); // skeleton.play(0,true);//播放不了别的 this.owner.addChild(skeleton); skeleton.pos(500,500); 哪里写的有问题 大佬看看 2019-06-18 添加评...
来源: Laya_社区 发布时间: 20190618
...ew Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function par...
来源: Laya_示例 发布时间: 20241118
...mStartX = 400, mStartY = 500, mCurrIndex = 0, mLabelSprite; class Skeleton_SpineEvent { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clien...
来源: Laya2.0_示例 发布时间: 20241118
...Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function pa...
来源: Laya_示例 发布时间: 20241118
...Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } functio...
来源: Laya_示例 发布时间: 20241118
...Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } ...
来源: Laya_示例 发布时间: 20241118
... { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseCompl...
来源: Laya2.0_示例 发布时间: 20241118
关于骨骼动画的优化建议 由于本人最近项目用到了spine动画,鉴于本人之前也完全看过spine的类库。用gpu工具分析看到,在渲染骨骼动画的过程中,如果一部分使用了顶点形变,会导致一个spine模型渲染阶段的shader切换和drawcall...
来源: Laya_社区 发布时间: 20181130
...y, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0; class Skeleton_SpineVine { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.client...
来源: Laya2.0_示例 发布时间: 20241118
...y, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0; class Skeleton_SpineStretchyman { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser...
来源: Laya2.0_示例 发布时间: 20241118