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

大约有 712 项符合查询结果, 库内数据总量为 30,939 项。 (搜索耗时: 0.0049 秒)

631. 关于UI编辑器的小建议 [ 54%]

...种是绝对定位,一种是相对定位 绝对定位时,可以使用width,height,xy 相对定位时,在某些情况下不是很好用 比如说,我有一个按钮,宽高是固定的,100*100,这时我相对于上级的坐标希望是相对位置,right=0,top=0,表示右上...

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

632. 微信小游戏使用截图分享使用Canvas.toTempFilePath(Object object)分享出去的是空白图 [ 54%]

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

633. 提交一个MovieClip的BUG [ 54%]

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

634. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 54%]

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

635. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 54%]

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

636. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 54%]

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

637. 示例 骨骼动画换装 加不上点击事件 [ 54%]

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

638. laya.resource.Texture2D_API3.0 [ 54%]

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

639. 微信小游戏截图 [ 54%]

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

640. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 54%]

...this),跳进去 在Layout._multiLineLayout(element)里面的updatePos(0,tWidth,i,tY,align,valign,lineHeight)函数里对元素根据对齐方式重新设置坐标。这里面感觉对垂直居中的y坐标的计算方式不对。根据的是行高来计算,而不是我给组件设置的高 Lay...

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