大约有 2,275 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0089 秒)
Laya_社区(1671) Laya2.0_文档(140) Laya3.0_api(124) Laya2.0_api(97) Laya3.0_文档(77) laya_api(69) Laya_示例(52) Laya2.0_示例(45)
...et = 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"); } parseComplete() { // 创...
来源: Laya2.0_示例 发布时间: 20251209
...多次加载请求,很影响体验,有没有办法使用图集呢? 2015-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 WLDragon 赞同来自: cuixueying 关于这个问题就让我来回答吧#^_^# 因...
来源: Laya_社区 发布时间: 20151217
...ya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya....
来源: Laya_社区 发布时间: 20200903
... // 不支持WebGL时自动切换至Canvas // Laya.init(1600, 800, WebGL); // Laya.stage.alignV = Stage.ALIGN_MIDDLE; // Laya.stage.alignH = Stage.ALIGN_CENTER; // Laya.stage.scaleMode = Stage.SCALE_SHOWALL; ...
来源: Laya_社区 发布时间: 20201230
...("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存) mArmature = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); mArmature.scale(0.5, 0.5); mArmature.on(Event...
来源: Laya2.0_示例 发布时间: 20251209
...==== 本节主要讲一下 玩家·~~~ 这节要说的要点如下: 1、打包动画图集 2、创建动画模板 首先 当然是将我们需要的素材放到素材目录 这么多图 ~~~~ 一张一张加载要屎人的 我们不怕 因为laya有图集打包工具 图集是什么?你...
来源: Laya_社区 发布时间: 20160801
... List(); Laya.stage.addChild(list); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handl...
来源: Laya2.0_示例 发布时间: 20251209
...on setup() { var list = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handl...
来源: Laya_示例 发布时间: 20251209
...("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存) mArmature = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Ev...
来源: Laya2.0_示例 发布时间: 20251209
...this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit >> 1, Laya.stage.height - dragHeightLimit >> 1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( this.dragRegion.x, this.dragRegion.y, this.dragRegion.width, this.dragRegion.height...
来源: Laya_社区 发布时间: 20171106