大约有 712 项符合查询结果, 库内数据总量为 30,939 项。 (搜索耗时: 0.0046 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...种是绝对定位,一种是相对定位 绝对定位时,可以使用width,height,x,y 相对定位时,在某些情况下不是很好用 比如说,我有一个按钮,宽高是固定的,100*100,这时我相对于上级的坐标希望是相对位置,right=0,top=0,表示右上...
来源: Laya_社区 发布时间: 20170217
...0, 0); var canvas = htmlC.getCanvas(); canvas.toTempFilePath({ x: 0, y: 0, width: 500, height: 400, success: function (res) { wx.shareAppMessage({ imageUrl:res.tempFilePath }) } }); htmlC.destroy(); 2019-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20191220
...ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 是不是我写...
来源: Laya_社区 发布时间: 20180529
...w.music.btn_on) ; this.btn.pivot(75/2 , 75/2) ; this.btn.x = window.client_width - 25 ; this.btn.y = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ; this.btn.size(25,25) ; this.btn.on(Laya.Event.CLICK, this, music.music_voice_toggle); 代码是这样的 ...
来源: Laya_社区 发布时间: 20170803
...r login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",s...
来源: Laya_社区 发布时间: 20170806
... partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage.height / 2; } 报错如下: ReferenceError: Loader is not defined preload.js:55 at LoveView.onEnable (file:///D:/laya/myLaya/myZootopia/bin/js/bund...
来源: Laya_社区 发布时间: 20190704
...var mSkinList = ["goblin", "goblingirl"]; (function () { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory....
来源: Laya_社区 发布时间: 20170818
...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getPixels gpuCompressFormat hasListener isCreateFromURL of...
来源: Laya3.0_api 发布时间: 20231115
...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;//这个就是截屏的图片地址,可以将图片生成到相册,也可以使用这个地址用...
来源: Laya_社区 发布时间: 20190515
...this),跳进去 在Layout._multiLineLayout(element)里面的updatePos(0,tWidth,i,tY,align,valign,lineHeight)函数里对元素根据对齐方式重新设置坐标。这里面感觉对垂直居中的y坐标的计算方式不对。根据的是行高来计算,而不是我给组件设置的高 Lay...
来源: Laya_社区 发布时间: 20180104