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

大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0081 秒)

521. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 92%]

...Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; this.sprite3D = scene.addChild(new Laya.Sprite3D()) as Laya.Sprite3D; //正方体 var box = this.sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane())) as Laya.MeshSprite3D; this.box = box; box.transform.p...

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

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

523. 加载-错误处理和进度 [ 92%]

...r.png", "../../res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("加载...

来源: Laya_示例 发布时间: 20241002

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

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

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

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

526. 抖动效果,震屏效果 [ 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

527. 性能测试-卡通人物 [ 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_示例 发布时间: 20241002

528. 音频-播放演示 [ 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_示例 发布时间: 20241002

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

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

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

530. 如何与服务端建立连接 [ 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