大约有 712 项符合查询结果, 库内数据总量为 30,941 项。 (搜索耗时: 0.0053 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...parent.addChild(mArmature); mArmature.pos(parent.x+parent.width/2, parent.y+parent.height/2); mArmature.scale(3, 3); mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); mArmature.play(1, true); } completeHand...
来源: Laya_社区 发布时间: 20190730
...ring;// = canvas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath; __JS__('wx').saveImageToPhotosAlbum({ filePath:imagePath, success:function(res:*):void{ trace("-----...
来源: Laya_社区 发布时间: 20180830
...ure.bitmap.alwaysChange = true; this.graphics.drawTexture(myTexture, x, y, width, height) 目前遇到的问题: 主域里面的texture获取在获取sharedCanvas里的图案的时候,没有将texture自身的内容清空,导致绘制到主界面上的绘制出来的图案是不停的叠加...
来源: Laya_社区 发布时间: 20180419
...constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clientHeight, Laya.WebGL ); Laya.init(720,1280,Laya.WebGL); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_M...
来源: Laya_社区 发布时间: 20180226
...angeMatrix",a:mat.a,b:mat.b,c:mat.c,d:mat.d,tx:mat.tx,ty:mat.ty,w:opendata.width,h:opendata.height}); } 在主域排名榜完全打开窗口后调用这个方法看看。 2019-09-06 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...
来源: Laya_社区 发布时间: 20190815
...30); btn.scale(Browser.pixelRatio, Browser.pixelRatio); btn.pos(Laya.stage.width / 2 - btn.width * Browser.pixelRatio / 2, Laya.stage.height - 50 * Browser.pixelRatio); btn.on(Event.CLICK, _this, onclick); Laya.stage.addChild(btn); Laya.stage.on(Event.RESIZE, null, function():void { btn.pos(Laya.sta...
来源: Laya_社区 发布时间: 20170209
...ipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _end _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start destroy event getData gpuComp...
来源: Laya3.0_api 发布时间: 20231115
...到2.0he和1.0的区分。 loadImage这个方法在2.0不是去掉了x/y/width/height吗,2.0文档怎么还是1.0写法?? 能不能写个文档让开发者知道2.0和1.0的语法区别? 引用aya郭德纲的一句话:我希望layaAir好,我怕它完了。我爱layaAir,谁特么爱我...
来源: Laya_社区 发布时间: 20181024
...rojectionViewMatrix, _outPos); msg1.scale(300/xp, 300/xp); msg1.pivot(msg1.width,msg1.height); msg1.pos(_outPos.x / Laya.stage.clientScaleX,(_outPos.y / Laya.stage.clientScaleY)-20); }我这样写 为什么在freshBubble里拿不到这个?有示例可以参考一下吗?感激不尽 2018-01-05 ...
来源: Laya_社区 发布时间: 20180105
...ner: gameWorld, options: { width: stageWidth, height: stageHeight, wireframes: true, pixelRatio: window.devicePixelRatio //这里 } }); 附件 : --> mat...
来源: Laya_社区 发布时间: 20180120