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

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

1501. 分享水波一个shader [ 81%]

...ormMap); shader.addSubShader(subShader); subShader.addShaderPass(vs,ps);  this.setShaderName("Test1"); }  set mainTex(value:BaseTexture) { this._shaderValues.setTexture(this.MAIN_TEX,value); }  set noiseTex(value:BaseTexture) { this._shaderValues.setTexture(this.NOISE_TEX,value); }  set time(val...

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

1502. laya.utils.StatUI_API3.0 [ 81%]

...ers ctx: any x: number y: number Returns void set_onclick set_onclick(fn: (this: GlobalEventHandlers, ev: MouseEvent) => any): void Overrides IStatRender.set_onclick Defined in laya/utils/StatUI.ts:168 override 点击性能统计显示区域的处理函数。 Parameters fn: (this: GlobalEventHand...

来源: Laya3.0_api 发布时间: 20231102

1503. 头条首次加载黑屏,之后正常.通过调试发现Laya.AtlasInfoManager.enable等API的异步回调进不去 [ 81%]

...   Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded));         Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 2020-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

1504. qq小游戏网络音效无法重复播放(有复现demo) [ 81%]

...。 代码很简单,附件为复现工程,具体代码在GameUiTest.js this.imaAudioLocal.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "res/audio/sound_click.wav"; Laya.SoundManager.playSound(resUrl, 1); });  this.imaAudioNet.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "https://具体...

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

1505. 火狐浏览器上webgl异常 [ 81%]

...en initialized prior to a partial upload, forcing the browser to clear it. This may be slow. async.race.0._hash.e3a9c451.js%20line%20297%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing texture data. This is slow. 如题 这可能是什么引起的? 2017-11-20 添...

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

1506. 我想在拖动startDrag时,根据X的值助理其它的业务 [ 81%]

...解决了,谢谢你了 这样才行! public get x(): number { return this._x; } public set x(value: number) { this._x = value; this.event(XYImage.SPRITE_PROPERTY_CHANGE, { "x": this._x }); } Monica • 2017-11-01 12:15 好的,多谢分享。有问题再联系~

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

1507. 屏幕适配怎样实现铺满全屏,又不被拉伸? [ 81%]

...有UI的Y轴坐标及高度进行调整 Laya.stage.on(Laya.Event.RESIZE, this, this.onResize);  调整方法为,根据IDE里该UI的对齐模式相应调整。比如让UI始终按照预期的顶部对齐、底部对齐 实践方法:重载引擎的resetLayoutY方法   基本思路就是这样...

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

1508. VBOX动态增加的元素没有自动布局 [ 80%]

...印显示btn1_btn为null console.log(btn1_btn); // btn1_btn.label="first"; this.myvbox.addChild(btn1); var btn2=new ui.test.view_btnUI(); var btn2_btn:laya.ui.Button=btn2.getChildByName("btn") as laya.ui.Button; // btn2_btn.label="second"; this.myvbox.addChild(btn2); var btn3=new ui.test.view_btnUI(...

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

1509. 3d引擎 相同参数,碰撞结果不一致,同时水平施加冲量,会在上下方向运动 [ 80%]

... 墙体设有弹力: WestWall0.restitution = 0.8;//弹力 球设有: this.cubeRigids[i].linearDamping = 0.3;//线性阻力 this.cubeRigids[i].angularDamping = 0.3;//角阻力 this.cubeRigids[i].restitution = 0.8;//弹力 this.cubeRigids[i].friction = 0.6;//摩擦力 给白球施加相同方向...

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

1510. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 80%]

...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...

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