大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0081 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...t\load.js 第299行, _dt() { var g = this.tips._graphics; g.clear(); g.fillText(this._tips[this.prei], -26, 0, this.fontstr, this.fc, "center"); g.fillText("(" + this.p + "%)", 1 / 2 * this._len[this....
来源: Laya_社区 发布时间: 20170518
...: var timeLine:TimeLine = new TimeLine(); timeLine.addLabel("turnup",0).to(this,{y:this.y + 20},20,null,0) .addLabel("turndown",0).to(this,{y:this.y - 40},20,null,0) .addLabel("turnup",0).to(this,{y:this.y + 400},20,null,0) .addLabel("turndown",0).to(this,{y:this.y - 40},20,null,0) .addLabel("...
来源: Laya_社区 发布时间: 20181016
...loader.load("res/cartoonCharacters/cartoonCharactors.json", Handler.create(this, this.createCharacters), null, Loader.ATLAS); } createCharacters() { characterGroup = []; for(let i = 0; i = 0; --i) { this.animateCharactor(characterGroup[i]); } } animateCharactor(charactor) { charactor.x += moveSpeed;...
来源: Laya2.0_示例 发布时间: 20250224
...undButton.y; Laya.stage.addChild(musicButton); soundButton.on(Event.CLICK, this, onPlaySound); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); butt...
来源: Laya_示例 发布时间: 20250224
使用Laya.Handler.create在方法体内this关键词无效 附件 : --> 2019-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 缨 赞同来自: 首先检查你的外部那个Init函数的this,然后再...
来源: Laya_社区 发布时间: 20191021
...ort; let socket:Laya.Socket = new Laya.Socket(); socket.on(Laya.Event.OPEN,this,()=>{ console.log("connect success!"); }) socket.connectByUrl(url);点此查看Socket官方示例 2018-05-15 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 只要前端的,还是要前端和后端代码? 2018...
来源: Laya_社区 发布时间: 20180514
...自己修改,编译替换引擎都试过了,没有效果 _update() { this._timeKeeper.update(); let state = this._state; let delta = this._timeKeeper.delta * this._playbackRate; state.update(delta); state.apply(this._skeleton); this._currentPlayTime = state.getCurrentPlayTime(this.trackIndex); i...
来源: Laya_社区 发布时间: 20241104
...颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, this.onFrame); } onFrame(): void { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧间隔创建30个雪花 for (var i: number = 0; i 640+20||img1.scaleX 在一些特殊情况我们...
来源: Laya2.0_文档 发布时间: 20210715
...了repeat=true,改变uv时图片没有平铺 private onFrame():void{ if(this.testScrollImg){ if(this.testScrollImg._bitmap && this.testScrollImg._bitmap.source){ this.testScrollImg._bitmap.source.repeat = true; var ss:any = this.testScrollImg._bitmap.source.uv; var uv:any[] = []; uv[0] = s...
来源: Laya_社区 发布时间: 20180321
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100...
来源: Laya2.0_示例 发布时间: 20250224