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

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

2371. tiledmap有时尺寸不正确 [ 47%]

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

2372. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 47%]

...platform.com/manifests/vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED, function () { video.play(); }); } plyr.setup(video); ``` 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的: `Laya...

来源: Laya2.0_文档 发布时间: 20210714

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

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

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

2374. 背景音乐来回切换报错 [ 47%]

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

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

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

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

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

...与内容相关的链接 提交 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

2377. laya.ui.TextInput_API3.0 [ 47%]

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

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_示例 发布时间: 20251223

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