大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
...关闭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
...nLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; ca...
来源: Laya_社区 发布时间: 20170607
...loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL.formatURL(url); if (url == _tMusic) { if (_musicMuted) return null; } else { if (R...
来源: Laya_社区 发布时间: 20190115
...道是否正确,现在出现 TypeError: Cannot create property 'path' on number '10000' at new r (file:///Users/bingbing/MahjongProject/MahjongLaya/bin/socket.io.js:1:15053) zhishaofei3 • 2017-09-22 23:31 @piaobo80:链接打不开了怎么办 还有链接吗 重发一下 zhishaofei3 • 2017-09-...
来源: Laya_社区 发布时间: 20161214
...则会穿透house private var curTarget: Sprite; private var preMovementX: Number = 0; private var preMovementY: Number = 0; public function Physics_Physics_CollisionFiltering() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); L...
来源: Laya2.0_示例 发布时间: 20260303
...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```
来源: Laya2.0_文档 发布时间: 20210715
... }); 播放时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void { this.aniBody.destroyChildren(); this.aniBody.clear(); let loopPlay: boolean = true; let key: string = actionName + "_" + Math.a...
来源: Laya_社区 发布时间: 20170615