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

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

2371. 背景音乐来回切换报错 [ 48%]

...mainSound:Laya.SoundChannel = null;         this.btn_sound.on(Laya.Event.CLICK,this,function(){             dreamsSound = null;             if(mainSound == null){                 Laya.loader.load("res/main.mp3",Laya.Handler.create(this,function(){   ...

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

2372. laya2.0里bundle.js删除之后为什么不会重新生成了,改原来的代码又不生效 [ 48%]

...与内容相关的链接 提交 1 个回复 嘿哈 赞同来自: 出错了:events.js:163 throw er; // Unhandled 'error'  Error: Cannot find module '../../release/wxgame/js/bundle' from 'E:\layaSrc_200\laya200_test\xxxxxxx\src\gameParts' at D:\LayaAirIDE_200_beta\resources\app\node_modules\browser-r...

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

2373. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 48%]

... name: "", inspector: "Buttons", options: { buttons: [{ caption: "生成", event: "click_start_gen" }] } } ] } ]); Editor.extensionManager.createSettings("SplitAtlasSetting", "project"); } } 2025-07-23 0 0 分享 微博 QZONE 微信 LayaAir小牛 赞同来自: 方法为Editor.showOpenDialog 2025-07-...

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

2374. 如何获取刚体碰撞前的刚体速度 [ 48%]

...来自: 试试覆写 Script的onTriggerEnter方法。 或者侦听owner的 Event.TRIGGER_ENTER 事件。   然而你台球游戏不是应该设置好每个物体的刚体属性,质量,碰撞属性,摩擦力等,只需要给白球施加一个力就可以吗?为什么还要自己去计算反...

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

2375. tiledmap有时尺寸不正确 [ 48%]

...void{ this._mLoadState = ESceneLoadState.eLoadComplete; Laya.stage.on(Laya.Event.RESIZE, this, this.onResizeHandler); this.onResizeHandler(); if (this._mCompleteHandler){ this._mCompleteHandler.run(); } } private onResizeHandler():void{ this._mTiledMap.changeViewPort(this._mViewPortX, this._mViewPor...

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

2376. laya.ui.TextInput_API3.0 [ 48%]

...th addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

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

2377. QQ玩一玩打包问题 [ 47%]

...正常运行,为什么打包APK之后在手机上就连接不上socket event自定义事件的问题 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 关于shader中opengl函数问题 1.8.4版本打包vivo小游戏,只有个temprelease graphics alpha 问题 ...

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

2378. 物理引擎-Slingshot [ 47%]

...useConstraint, ground, pyramid, ground2, pyramid2, rock, elastic]); Matter.Events.on(engine, 'afterUpdate', function() { if (mouseConstraint.mouse.button === -1 && (rock.position.x > 190 || rock.position.y 190 || rock.position.y 190 || rock.position.y < 430)) { rock = Matter.Bodies.polygon(170, 450,...

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

2379. 浏览器接口 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...nt, url);// 此处最好加延迟 //监听器注册 Laya.Browser.window.addEventListener("click", (event: any) =&gt; { console.log(event.type); }) Window.open() 方法、window.postMessage()方法、Window.addEventListener()方法 3.3 container 画布 LayaAir引擎里可以通过 Laya.Browser.contai...

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

2380. image在相应loaded的时候,无法正确获取高度 [ 47%]

....engine.world, this.matterBody); this.matterBody.layaSprite = this; Matter.Events.on(GameMain.instance.engine, 'beforeUpdate', (()=&gt; { console.log("update", this.x, this.y, this.width, this.height) }).bind(this)); } 第一个打印,this.height是没有形变时候的参数,只有执行了一...

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