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

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

371. 对话框点击空白处无法关闭 [ 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

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

...决方案 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

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

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

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

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

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

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

378. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 55%]

...rcle(75, 75, 75, "#ffffff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 c...

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

379. swf转换后,变成两张png,元件和背景分开了……元件都是位图格式, [ 55%]

...01-23 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以设置 width height 宽高 2018-01-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xiahaijiao 相关问题 iphoneX环境下新手引导的抠图透明区域为黑色...

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

380. 粒子中引用的图片能合图吗 [ 55%]

...ta);     part.emitter.start();     part.play();     part.x = this.width / 2;     part.y = this.height - 100;     Laya.stage.addChild(part); } dian.png和dian.part放到demo的comp目录下。 dian.zip 2017-08-03 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 可否把可以...

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