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

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

431. Android小游戏加载不打包的图会卡资源 [ 54%]

...会卡资源 this.assets.push({ url: "lobby/zhujiemian_ditiao.png", type: Laya.Loader.IMAGE });   Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false));   在加载的时候ios的微信小游戏是没有问题的,但...

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

432. 渲染模式RENDERMODE_TRANSPARENT,无法动态批处理。 [ 54%]

...bin目录下的某个场景json文件。。竟然无法自动生成了? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 求问shader中的attribute变量怎么动态修改 在List渲染的时候,在滚动一个list的时候,如何实现...

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

433. 2D图片在3D场景中定位问题 [ 54%]

...找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 得做一下屏幕坐标和 世界坐标的转换http://layaair.ldc.layabox.com ... Space 2018-01-02 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

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

...per); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_sli...

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

435. Handler.create的回收问题 [ 54%]

...行回收,默认为true。可下面代码为什么结果是false? module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Test { private h1: Laya.Handler; private h2: Laya.Handler; constructor() { // 不支持WebGL时...

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

436. 动态生成 二维码 的base64 数据如何 转换成图片保存到本地,并使用显示出来 [ 54%]

...                2.相册选择功能,也是生成base64数据 和 laya交互   原生不支持 base64 直接显示, 我要如何使用 base64数据 显示出来,  base64 数据可以转成图片然后保存到本地,使用layaAPI 读取路径显示出来吗? ,有没有方法显示出来吗...

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

437. 打包ios时,第第一次进入游戏闪退,第二次就没问题,报一下错误 [ 54%]

...8-01-28 23:29:52.635670+0800 qimiaomuchanIOS[5815:1707048] require(/sdcard/layabox/scripts/promise.js) 2018-01-28 23:29:52.637141+0800 qimiaomuchanIOS[5815:1707048] found the file in the package:scripts/promise.js 2018-01-28 23:29:52.639543+0800 qimiaomuchanIOS[5815:1707048] require(/sdcard/layabox/...

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

438. TypeError: Cannot set property 'material' of undefined [ 54%]

TypeError: Cannot set property 'material' of undefined this.unit3D = Laya.Loader.getRes("Unity/Unit.lh") as Laya.MeshSprite3D; this.scene3D.addChild(this.unit3D);         this.unit3D.transform.localScale = new Laya.Vector3(1, 1, 1); this.unit3D.transform.translate(new Laya.Vector3(0, 0, 0))...

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

439. 滤镜的集中实现 [ 54%]

滤镜的集中实现 //初始化舞台 Laya.init(1110, 1110,Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 createImg(200,50); //红色滤镜 creteRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //创建阴影滤镜位图 createShadeFilter(); //...

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

440. 求绘制遮罩会引起黑屏的解决办法 [ 54%]

求绘制遮罩会引起黑屏的解决办法 this.progressvalue = new Laya.Image("Game/bar_yuan.png"); this.progressvalue.anchorX = 0.5; this.progressvalue.anchorY = 0.5; this.progressvalue.pos(15, 15); //记录宽度 this.width_x = this.progress.width + 3;   this.vmask = new Laya.Sprite(); this....

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