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

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

401. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 63%]

...roto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+this._stateNum; var clips=AutoBitmap.getC...

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

402. UI-ProgressBar [ 63%]

...ressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Progre...

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

403. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 63%]

...,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i < arr.length; i++) { let arrString = arr[i].split(","); // 创建动画动作状态 state = new Laya.AnimatorState(); //设置动作状态的名称 state.name = arrString[2]; // 开...

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

404. 动画混合问题,Avatar动画混合报错. [ 63%]

... this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position...

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

405. 模拟石头下落过程不明抖动 [ 63%]

... } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():Laya.Sprite { for( let i:number = 0 ; i < this.balls.length;i++ ){ if( !this.balls[i].parent ){ return this.balls[i]; } } let ball = new Laya.Sprite(); ball .graphics.drawRect( 0...

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

406. 定时器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...10; i++) Laya.timer.callLater(this, this.hideImage); } hideImage(): void { console.log("hideImage"); this.Image.visible = false; } } 5. 清理定时器 Laya.timer.clear:清理指定的定时器。定义如下: /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器...

来源: Laya3.0_文档 发布时间: 20251010

407. [LayaAir3]LayaAir3.3使用Fairygui开发UI,滤镜效果对不上 [ 63%]

...quot;, (pkgs) => { const view = pkgs[0].createObject("View"); console.log(view); this.owner.addChild(view.displayObject); }); } 我提出的問題是,Fairygui編輯器和Laya編輯器,使用BlendMode和濾鏡的效果不相同。 格局豬 - 趙唐豬豬 • 2025-09-08 12:29 我重...

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

408. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...ent.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sprite2的MouseEnabled的值:true } test2(e: Laya.Event) { console.log('mou...

来源: Laya3.0_文档 发布时间: 20251010

409. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 63%]

...ld(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; console.log("SHOW"); dialog.show(); Laya.timer.once(3000, this, function () { console.log("SHOW"); dialog.show(); }); } })();http://layaair.ldc.layabox.com/demo/?UI_Dialog 直接到示例下跑一跑就知道了... @cuixueyin...

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

410. 2.2.0 bata3 开放域透传功能报错 [ 63%]

...到2.2.0 beta3后,原有的排行榜功能出现了显示问题,查看console应该是开放域没有找到文件。 微信开发工具:   手机调试控制台:   附件 : --> 2019-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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