• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,095 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0085 秒)

531. Handler.create的回收问题 [ 92%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 =...

来源: Laya_社区 发布时间: 20171221

532. 微信小游戏渲染开放域卡顿处理 [ 92%]

...i         constructor() {             super();             this.once(Laya.Event.DISPLAY, this, this.onCreate);             this.once(Laya.Event.UNDISPLAY, this, this.onDestroy);         }         /**          * 加入场景          */         protected on...

来源: Laya_社区 发布时间: 20181114

533. loadingView 的 tips提示问题 [ 92%]

...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

534. 抖动效果,震屏效果 [ 92%]

...: 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

535. 性能测试-卡通人物 [ 92%]

...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_示例 发布时间: 20251209

536. 音频-播放演示 [ 92%]

...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_示例 发布时间: 20251209

537. 使用Laya.Handler.create在方法体内this关键词无效 [ 92%]

使用Laya.Handler.create在方法体内this关键词无效   附件 : --> 2019-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 缨 赞同来自: 首先检查你的外部那个Init函数的this,然后再...

来源: Laya_社区 发布时间: 20191021

538. 如何与服务端建立连接 [ 92%]

...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

539. [LayaAir3]给box设置filters,里面的spine无效或者无法显示 [ 92%]

...自己修改,编译替换引擎都试过了,没有效果 _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

540. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 92%]

...颜色 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