大约有 2,541 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1918) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...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
...platform.com/manifests/vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED, function () { video.play(); }); } plyr.setup(video); ``` 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的: `Laya...
来源: Laya2.0_文档 发布时间: 20210714
...正常运行,为什么打包APK之后在手机上就连接不上socket event自定义事件的问题 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 关于shader中opengl函数问题 1.8.4版本打包vivo小游戏,只有个temprelease graphics alpha 问题 ...
来源: Laya_社区 发布时间: 20180709
...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
...来自: 试试覆写 Script的onTriggerEnter方法。 或者侦听owner的 Event.TRIGGER_ENTER 事件。 然而你台球游戏不是应该设置好每个物体的刚体属性,质量,碰撞属性,摩擦力等,只需要给白球施加一个力就可以吗?为什么还要自己去计算反...
来源: Laya_社区 发布时间: 20190616
...与内容相关的链接 提交 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
...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
...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
...nt, url);// 此处最好加延迟 //监听器注册 Laya.Browser.window.addEventListener("click", (event: any) => { console.log(event.type); }) Window.open() 方法、window.postMessage()方法、Window.addEventListener()方法 3.3 container 画布 LayaAir引擎里可以通过 Laya.Browser.contai...
来源: Laya3.0_文档 发布时间: 20251010
....engine.world, this.matterBody); this.matterBody.layaSprite = this; Matter.Events.on(GameMain.instance.engine, 'beforeUpdate', (()=> { console.log("update", this.x, this.y, this.width, this.height) }).bind(this)); } 第一个打印,this.height是没有形变时候的参数,只有执行了一...
来源: Laya_社区 发布时间: 20180530