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

大约有 580 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0294 秒)

371. 调用Sprite的drawToCanvas怎么返回的是uint8array [ 57%]

...                     var _canvas:* =this.drawToCanvas(this.width,this.height,0,0);             var base64:*  = _canvas._canvas.source.toDataURL();                         return base64;          } 附件 : --> 2017-04-01 添加评论 免费帖 --> ...

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

372. 播放视频只有声音没有图像 [ 57%]

...oElement.controls = false; videoElement.autoplay =true; videoElement.style.width='100%'; videoElement.style.height='100%'; videoElement.autobuffer=true; videoElement.src = "/Users/apple/LayBox/星空/laya/assets/video/world.mp4"; // 设置画布上的对齐参照物 let reference = new Laya.Sprite()...

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

373. 对话框点击空白处无法关闭 [ 57%]

...this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_slider.png"}}]}; return testUI; })(Dialog);我定义了一个对象来使用它 var SelectColorDialog = (function () { function selec...

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

374. Laya.stage.drawToCanvas 原生ios 使用该api报错,求解决方案 [ 57%]

...决方案 var htmlC: Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); //获取截屏区域的texture let base64 = htmlC.toBase64("image/jpeg", 1);   使用toBase64 报错can`t find variable conchToBase64FlipY 附件 : --> 2019-06-21 添加评论 免费帖 --> ...

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

375. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 56%]

...the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The h...

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

376. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 56%]

...被触发 //设置背景图片 this.bgimg = new Laya.Sprite(); this.bgimg.width=2*scronw; this.bgimg.height=2*scronh; //加载显示图片,坐标位于0,0 var temptexture=Loader.getRes(pic); if (typeof(temptexture)!="undefined"){ this.bgimg.texture=Loader.getRes(pic) }else{ this.bgimg.loadImage(pi...

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

377. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 56%]

...格的行数 list.repeatY = 4; //设置列表位置 list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏垂直滚动条 list.vScrollBarSkin = ""; //滚动在头或底回弹时间 list.scrollBar.elasticBackTime = 500; //滚动在...

来源: Laya2.0_文档 发布时间: 20210715

378. laya.resource.HTMLCanvas_API3.0 [ 56%]

...ext cpuMemory destroyed gpuMemory height id obsolute referenceCount source width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy event getContext getMemSize getTexture hasListener isCreateFromURL off offAll offAllCall...

来源: Laya3.0_api 发布时间: 20231115

379. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 56%]

...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...

来源: Laya2.0_文档 发布时间: 20210714

380. 开启视网膜画布(useRetinalCanvas)后,在iphone6 plus 等设备像素比大于1 的设备上截图不完整 [ 56%]

... let htmlCanvas: Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0);         let base64Img                   = htmlCanvas.toBase64("image/png", 0.8); 而 关闭视网膜屏幕或者在屏幕像素比为1的设备上正常 附件...

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