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

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

11. Image的九宫格BUG [ 94%]

Image的九宫格BUG 引擎版本2.13.1 当设置了九宫格的imagewidth刚好等于发布后图集的widthimage的height刚好等于图集的height 的时候就出BUG,如: 图集test.png的尺寸是304*302 游戏内用到img_test.png这个图的时候,只要设置width=304或者height=30...

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

12. QQ玩一玩 获取头像后的数据是 BK.Buffer,需要如何用laya的Image显示出来? [ 94%]

...openID, BuffInfo){ if(openID == openID1) { var buff = BuffInfo.buffer; var width = BuffInfo.width; var height = BuffInfo.height; BK.Script.log(0,0,"headeBuff :"+ openId + " buff:"+ buff + " width:"+ width +" height:"+height); var tex = new BK.Texture(buff,width,height); var sp =new BK.Sprite(200,200...

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

13. UI模式下Dialog标签嵌套RadioGroup会导致编辑器卡死 [ 94%]

...UI模式下Dialog标签嵌套RadioGroup会导致编辑器卡死 <Dialog width="725" sceneColor="#000000" height="500" editorInfo="compId=1"> <Image y="46" x="0" width="687" skin="setting/gd2_n.png" sizeGrid="30,30,30,30" height="402" editorInfo="compId=4"> <Image y="0" x="241.5" skin=...

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

14. image的uv动画不能平铺 [ 93%]

..._bitmap.source.uv; var uv:any[] = []; uv[0] = ss[0] + 2/this.testScrollImg.width; uv[1] = ss[1]; uv[2] = ss[2] + 2/this.testScrollImg.width; uv[3] = ss[3]; uv[4] = ss[4] + 2/this.testScrollImg.width; uv[5] = ss[5]; uv[6] = ss[6] + 2/this.testScrollImg.width; uv[7] = ss[7]; this.testScrollImg._bitmap...

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

15. 截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 93%]

...){ if( Laya.Browser.window.conch ) { var content=Laya.Browser.context; var width=800; var height=500; Laya.Browser.window.conch.captureScreen(function(content,width,height){ Laya.Browser.window.conch.saveAsPng( content,width,height,Laya.Browser.window.conch.getCachePath()+"/test.png" ); }) } }    ...

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

16. 性能测试-卡通人物2 [ 93%]

...ss Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.interval = 70; ani...

来源: Laya_示例 发布时间: 20240929

17. 性能测试-卡通人物2 [ 92%]

...s.nameLabel.text = "Default"; this.nameLabel.fontSize = 13; this.nameLabel.width = Character.WIDTH; this.nameLabel.align = "center"; this.addChild(this.nameLabel); } setSpeed(value) { this.speed = value; } setName(value) { this.nameLabel.text = value; } update() { this.x += this.speed; if (this.x >=...

来源: Laya2.0_示例 发布时间: 20240929

18. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 92%]

...018-05-03 0 0 分享 微博 QZONE 微信 。。 赞同来自: sharedCanvas.width = width*pixelRatio; sharedCanvas.height = height*pixelRatio; sendMessage({ mission: Mission.RESIZE, width:width, height: height });  wx.onTouchStart(onTouchStart); wx.onTouchMove(onTouchMove); wx.onTouchEnd(onTouchEnd)...

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

19. Panel初始化BUG [ 92%]

...设置内容的宽度、高度(以像素为单位)。      * @param width 宽度。      * @param height 高度。      */     private setContentSize(width: number, height: number): void {         var content: Box = this._content;         var rectX = 0;         var rectY =...

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

20. Laya中Button等组件lose skin的问题 [ 90%]

...n);             return;         };         var width=img.sourceWidth;         var height=img.sourceHeight / this._stateNum;         img.$_GID || (img.$_GID=Utils.getGID());         var key=img.$_GID+"-"+this._stateNum;         var clips=Wea...

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