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

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

211. layaair2-cmd compile编译报内存溢出 [ 44%]

... 分享 微博 QZONE 微信 liwen1590 赞同来自: error:   FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory     <--- Last few GCs --->   [3456:03E0EAB0] 692136 ms: Mark-sweep 1079.4 (1184.3) -> 1079.0 (1184.3) MB, 1093.1 / 0.0 ms allocation failure GC...

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

212. Native(android)下创建二维码并显示在页面上 [ 43%]

...dth:number, height:number):string {         return this._bridge.call("createQrCode", url, width, height);     }     // 以下android代码 // JSBridge.javapublic static String createQrCode(final String content, final double width, final double height) { Bitmap bitmap = createQRCo...

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

213. 如何将一段文字放置到粘贴板 , 或者说点击一个按钮后复制copy一段文字? [ 43%]

...bridge = Laya.PlatformClass.createClass("demo.JSBridge"); bridge.call("copyToClip","测试复制到粘贴板"); Monica • 2017-06-09 10:25 只是Native下不支持,你用第三方工具打包就好了

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

214. 分享:自己个人开发的H5游戏《西游战》 [ 43%]

...的赞哦Thanks♪(・ω・)ノ 2017-11-09 0 1 分享 微博 QZONE 微信 call1991 赞同来自: 请问不这个适配是怎么做的呢? 2017-11-16 0 1 分享 微博 QZONE 微信 y1234 赞同来自: 请问TS做的游戏,怎么用在放到微信公众号里面打开 2017-12-22 0 5 分享 微博 ...

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

215. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 43%]

..., this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.text.zOrder = 1; this.addChild(this.text); this.setImg = function(data) { var aar=[[150...

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

216. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 43%]

...laya.ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInput(); t...

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

217. native打包Android APP 运行一段时间opengl报错导致app重启 [ 42%]

...>after 2018-11-23 17:28:52.538 10354-10354/com.xzgame.rainbow E/libEGL: call to OpenGL ES API with no current context (logged once per thread) 2018-11-23 17:28:54.693 631-663/? E/libnav: CablComputeBacklightLevel(): UpdateType = DifferentSceneUpdate 2018-11-23 17:29:09.688 735-735/? E/cnss-daemon...

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

218. [临时解决]bug?加载sk问题 [ 42%]

...tion (_super) {     function Test01() {         Test01.__super.call(this);// 调试用,看看过了多少帧,才就绪         this.numPreloadCalls = 0; // 执行预加载         this.preload(this.onPreloaded.bind(this));      }      Laya.class(Test01, 'vie...

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

219. 加载的时候动画会卡 [ 42%]

...   }   (function() {     function Lload() {         Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing);         Laya.propertyIsEnumerable = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.dh = fun...

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

220. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 41%]

...改下CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return this._get...

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