大约有 4,101 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0078 秒)
Laya_社区(3322) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...动加上文件夹名? view.wx.getSystemInfoSync() 怎么解决自动加"this. " 或者有时自动加上各种文件夹名? 导出微信小游戏 微信的api前面会自动加上文件夹名? view.wx.getSystemInfoSync() 怎么解决自动加"this. " 或者有时自动加上各种文件夹名?this....
来源: Laya_社区 发布时间: 20180605
...身是否有解决方案啊 wxhelper.jsclass WXHELPER { constructor () { this._isWxContext = !!window.wx } onShow (callback) { if (!this._isWxContext) return window.wx.onShow(callback) } onHide (callback) { if (!this._isWxContext) return window.wx.onHide(callback) } offShow (callback) { if (!this....
来源: Laya_社区 发布时间: 20181101
...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 update这个 数值改变就会触发回调,也就是过程中的回调 2018-01-09 0 1 分享 微博 QZONE 微信 kezhiyu 赞同来自: let a = new Tween() let da...
来源: Laya_社区 发布时间: 20180109
...不到Laya.Event.RESIZE事件 init():void{ Laya.stage.on(Laya.Event.RESIZE,this,this.onStageChange); } protected onStageChange(event:Event):void { this.bg.y = 180; alert("11111111111111") var desWidth:Number; var desHeight:Number; //获取窗口显示区的宽度。 desWidth=window.innerWidth; //获...
来源: Laya_社区 发布时间: 20170322
...onGameOver不是函数,麻烦有时间的大佬看看,很奇怪: this.Matter.Events.on(this._engine, 'collisionActive', this.onCollision); private onCollision(event): void { for(var i = 0; i < event.pairs.length; i++) { var pair = event.pairs[i]; if(pair.bodyA.label === 'gun' &...
来源: Laya_社区 发布时间: 20180524
... Laya.loader.load("RenderTexture.rendertexture", null, Laya.Handler.create(this, null, null, false)).then(() => { this.spRole.texture = Laya.loader.getRes("RenderTexture.rendertexture"); //设置纹理的宽高为舞台大小,这样才不会拉伸变形 this.spRole.texture.sourceWidth = Laya.st...
来源: Laya_社区 发布时间: 20250109
...new Poly 如题,然后设置它的 renderType 这样也不行 : this.imgExpedition = new component.HomeScaleFilterImg(3, 655, "home/imgExpedition.png", 0); this._sprHome.addChildAt(this.imgExpedition, 0); this.homeScaleFilterImgList.push(this.imgExpedition); Laya.timer.once(2000, this, ()...
来源: Laya_社区 发布时间: 20180507
我创建了 一个 dialogUI,怎么在页面中打开? this.wrong=new ui.wrongUI; this.wrong.width=300; this.wrong.height=200; this.wrong.x=50; this.wrong.y=100; this.doworkui.addChild(this.wrong); doworkui是我的一个UI,我要在这个面中打开一个对话框. wrongUI是我创建的 对话...
来源: Laya_社区 发布时间: 20171027
...率依赖于参数指定时间。 ```javascript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage.on("click", this, dispose); private function dispose():void { Laya.timer.clear(this, animateFrameRateBased); } ``` 当一个对象的生命周期结束时,记得清...
来源: Laya2.0_文档 发布时间: 20210715
...12850行有2个`符号,不知道是不是这个引起的异常? if (!this._data){ this._data=data; if (data.meta && data.meta.image){ var toloadPics=data.meta.i...
来源: Laya_社区 发布时间: 20190202