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

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

1121. Dialog中编辑的动画如何控制? [ 86%]

...同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick() { this.ani1.stop();//停止播放 this...

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

1122. 一个修复Laya1.8.3中的粒子销毁时报错黑屏问题的思路 [ 86%]

...ver.beginFlush; Laya.RunDriver.beginFlush = function () { $beginFlush.call(this); let attrs = Laya.Buffer._enableAtributes; if (attrs) { attrs.forEach((buffer, index) => { if (buffer && buffer.deleted) { Laya.WebGL.mainContext.disableVertexAttribArray(index); attrs[index] = null; } }); wh...

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

1123. HTMLDivElement下划线换行时,下划线颜色错误 [ 86%]

...Line) graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(startWord.x,lastWords.y,lastWords.x+lastWords.width-startWord.x,lastWords.height); hitRec.href=this.href; recList.push(hitRec); }graphic.drawLine()这里会用...

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

1124. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 86%]

...", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window...

来源: Laya2.0_文档 发布时间: 20210714

1125. 高级应用-实时阴影 [ 86%]

.../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector...

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

1126. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 86%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var list: List = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeat...

来源: Laya2.0_文档 发布时间: 20210715

1127. 移动端Laya.VideoTexture播放视频纹理会出现卡顿情况~如何解决? [ 86%]

... Date()             console.log("=============>", (dt.getTime() - this.IndexFrame));             this.lbTips.text = this.lbTips.text + " " + (dt.getTime() - this.IndexFrame);             this.IndexFrame = dt.getTime();             if (this.VideoTexture != null)        ...

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

1128. 图片通过drawTexture平铺出现缝隙 [ 86%]

图片通过drawTexture平铺出现缝隙 this.darwSprite = new Sprite();         this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);  ...

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

1129. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

...器的方式: /* ……省略若干代码 */ //获取物理刚体组件 this.rigidbody1 = this.cube1.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; this.rigidbody2 = this.cube2.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //设置rigidbody1为触发器,取消物理反馈 this.rigidbody...

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

1130. 关于Timer延迟调用有一些不解 [ 86%]

...有一些不解 private function skill():void {    Laya.timer.once(1500,this,finish);     //Laya.timer.once(3000,this,finish);  } private function skill():void {    this.visible=false; } 假定这是一个简陋的人物隐身技能,蓄力1.5s后人物消失。   测试的时候我发现...

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