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

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

991. drawToCanvas转出图片与游戏内显示颜色差距过大 [ 69%]

...r='#ffffff';         Laya.stage.addChild(new Laya.Image('comp/img/img1.png'));         Laya.timer.once(1000, this, this.delayShow);     }     delayShow() {         let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0);         let str = canvas.toBase64('...

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

992. Laya.Loader.getRes请教 [ 69%]

...ew回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createView)); 却能拿到图集中的图片。是我...

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

993. LayaAir.exe IDE 资源打包问题 [ 69%]

...T_FOUND [warn]Retry to load: D:/work/LayaAir/GuessGame/bin/h5/ui/bg_prompt.png Failed to load resource: net::ERR_FILE_NOT_FOUND [error]Failed to load: D:/work/LayaAir/GuessGame/bin/h5/ui/bg_prompt.png 2017-02-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

994. 1.7.10 的版本ide 导出的图集的图片发虚 怎么回事 [ 69%]

...缩过很 虚而模糊 Supermang42 • 2017-09-27 11:45 圖片格式改成 png32 試試看。 Supermang42 • 2017-09-27 11:51 引擎改版後,圖片格式用png8的話畫質會非常差,應該是官方有針對壓縮這塊做強化。 wxj56406542 • 2017-09-26 19:34 我只是使用IDE进行导...

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

995. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 69%]

... = false; //判断条件 this.img1 = "../laya/assets/comp/haoyoubang-liang.png"; //地址 this.img2 = "../laya/assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height = 200; switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya...

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

996. 请问laya有没有类似翻页容器(pageView)的组件? [ 69%]

...Array = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildBy...

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

997. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 69%]

... 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     matrix.a = -1;     matrix.t...

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

998. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 69%]

...reItem = new Laya.Image(); fish.scoreItem.skin = "assets/ui_imgs/img_10103.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.score...

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

999. 救命!IOS apploader.js源码问题 [ 69%]

...了graphics,譬如画了一个矩形,然后我想导出sprite的图片png(base64),在native端? cyqcyqcyq • 2017-08-25 19:59 @Monica:我试了canvas方法,在浏览器端没有问题,但在native端没有toDateUrl方法,所以不能导出png Monica • 2017-08-25 20:01 @cyqcyqcyq...

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

1000. swf 转换的出来的文件不对 [ 69%]

...对 将 swf 文件拖入到 swf 转换工具中,转换完毕后,没有png图,文件夹结构也与文档中不一样。 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 HenryZhang 赞同来自: 附...

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