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

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

1691. Laya如何处理类与类之间的依赖关系 [ 47%]

...00, FATAL = 1000, OFF = 0xFFFFFFFF }class Logger { public static logLevel: number = LogLevelEnum.ALL; // 获取或设置日志输出的分级 }编译运行会报错。 可行的办法是改成getter去懒初始化, 用三斜线指令(ts推荐的,但是貌似没用?) 手动修改index.html...

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

1692. timer无法执行 [ 47%]

...); }   public shootBall(): void{ //生成空中降落的球 //var random: number = Math.random()*24-7; let ball: Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17...

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

1693. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 47%]

...X++) { var foodid = res.data[X]['n_food_id']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.png' }, food_txt: { text: foodtxt } // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSourc...

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

1694. 性能测试-卡通人物 [ 47%]

...} private createCharacters(): void { this.characterGroup = []; for (var i: number = 0; i = 0; --i) { this.animateCharactor(this.characterGroup[i]); } } private animateCharactor(charactor: Sprite): void { charactor.x += this.moveSpeed; charactor.rotation += this.rotateSpeed; if (charactor.x > Laya.st...

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

1695. Text.as中parseLines方法里的问题 [ 47%]

...| this.overflow == HIDDEN; if (needWordWrapOrTruncate) { var wordWrapWidth:Number = getWordWrapWidth(); } if (_currBitmapFont) { _charSize.width = _currBitmapFont.getMaxWidth(); _charSize.height = _currBitmapFont.getMaxHeight(); } else { var measureResult:* = Browser.context.measureText(_testWord); ...

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

1696. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 47%]

...h数据 Returns SkinMeshForGraphic Properties canvasPadding canvasPadding: number = 1 Inherited from MeshData.canvasPadding Defined in laya/ani/bone/canvasmesh/MeshData.ts:43 扩展像素,用来去除黑边 indexes indexes: Uint16Array = new Uint16Array([0, 1, 3, 3, 1, 2]) Inherited from MeshData.in...

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

1697. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...关闭loading界面 Laya.Scene.showLoadingPage(param: any = null, delay: number = 500) 显示loading界面,打开参数,如果是scene,则会传递给 onOpened 方法。延迟打开时间,默认500毫秒 Laya.Scene.hideLoadingPage(delay: number = 500) 隐藏loading界面,延迟关闭时间...

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

1698. APP打包后运行效果与调试效果不一致(sprite,child) [ 47%]

...his.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y-right.y; }   这样实现 当前Sprite里面的可移动sprite元素Y轴小的永远被Y轴大的遮挡,在IDE调试没有问题,但是打包APP(单机)在安卓机器上跑,无法达到...

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

1699. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 47%]

...e = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e");...

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

1700. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 47%]

...变化,确定是放大还是缩小 const factor = 0.01; let scaleSize: number = (distance - this.lastDistance) * factor; this.text.text = "缩放比例" + scaleSize + "" scaleSize += 1; this.earth2.transform.scale = new Laya.Vector3(scaleSize, scaleSize, scaleSize); } else { le...

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