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

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

1701. 场景管理 · LayaAir3.4 · 引擎文档 · 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

1702. 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

1703. 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

1704. 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

1705. 更新到1.7.6beta之后,HBox有bug [ 47%]

...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

1706. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 47%]

...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

1707. LayaAir中怎么使用node.js 的 socket.io [ 47%]

...道是否正确,现在出现 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

1708. 2D物理-碰撞过滤器 [ 47%]

...则会穿透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

1709. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 47%]

...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

1710. Animation 使用疑问 [ 47%]

...      });   播放时大概 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