大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
...00, FATAL = 1000, OFF = 0xFFFFFFFF }class Logger { public static logLevel: number = LogLevelEnum.ALL; // 获取或设置日志输出的分级 }编译运行会报错。 可行的办法是改成getter去懒初始化, 用三斜线指令(ts推荐的,但是貌似没用?) 手动修改index.html...
来源: Laya_社区 发布时间: 20171107
...); } 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
...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
...} 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
...| 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
...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
...关闭loading界面 Laya.Scene.showLoadingPage(param: any = null, delay: number = 500) 显示loading界面,打开参数,如果是scene,则会传递给 onOpened 方法。延迟打开时间,默认500毫秒 Laya.Scene.hideLoadingPage(delay: number = 500) 隐藏loading界面,延迟关闭时间...
来源: Laya3.0_文档 发布时间: 20251010
...his.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{ return left.y-right.y; } 这样实现 当前Sprite里面的可移动sprite元素Y轴小的永远被Y轴大的遮挡,在IDE调试没有问题,但是打包APP(单机)在安卓机器上跑,无法达到...
来源: Laya_社区 发布时间: 20180228
...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
...变化,确定是放大还是缩小 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