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

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

1261. 截屏文件没有保存 [ 49%]

...到图片 参考的教程是:https://ldc.layabox.com/doc/?nav=zh-js-7-2-7 if( window.conch ) { console.log("i'm here 1"); window.conch.captureScreen(function(arrayBuff,width,height){ conch.saveAsPng(arrayBuff,width,height,conch.getCachePath()+"/test.png" ); console.log("i'm here 2:" + arrayBuff.byte...

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

1262. 升级到2.0后.原本用字符串索引module内的函数,发现不行了, 求指教 [ 49%]

...的问题应该能用2.x的官方例子提供的如下代码能解决,  if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height);         else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);         Laya["Physics"] && Laya["Physics"].enable();  ...

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

1263. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 49%]

...age.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : --> test.zip 2019-07-01 添加评论...

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

1264. LAYA3D,如何关闭ALPHA预乘 premultiply alpha [ 49%]

...to 0, more precision loss occurs on IE. Try separating color and alpha to different textures. 2018-04-14 0 0 分享 微博 QZONE 微信 InJoins 赞同来自: 又一个GITHUB上的相关信息: Some implementations of HTMLCanvasElement's CanvasRenderingContext2D store color values internally in pre...

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

1265. spine适配版微信开发者平台报错 [ 49%]

...es/sk/pipei.skel"; this.index = -1; this.startFun(); } static startFun() { if (!this.templet) this.templet = new Laya.SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this...

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

1266. Laya3D初始化 window.wxMiniGame is not a function [ 49%]

...用动画结束on方法,报错this.zombieAnimator.on is not a function if (window["Laya3D"]) Laya3D.init(width,heigh) 调用失败,引起底层问题 浏览器运行提示TypeError: xxx is not a function 希望Laya3D的入门提供一个unity的项目例子 LayaAirIDE2.2 - Laya3D init error ,mus...

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

1267. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...码设定ProgressBar相关的属性。 **运行示例效果:** ​ ![5](gif/1.gif) ​ (图5)通过代码创建ProgressBar ​ ProgressBar的其他属性也可以通过代码来设置,上述示例演示了如何通过代码创建不同皮肤(样式)的ProgressBar,有兴趣的读者可以自...

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

1268. Animation 使用疑问 [ 49%]

...     this.aniBody.pivot(bound.width / 2, bound.height / 2);         if (direction < 0) {             this.aniBody.scaleX = -1;         } else {             this.aniBody.scaleX = 1;         }     } 每改变一个方向CurMern都爆涨50M这样(我的资源body,weap...

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

1269. list点击label保留一种状态 [ 49%]

...dex){ var dataIndex = data[index]; var label = item.getChildByName('lab'); if(dataIndex.type == false){ label.bgColor = '#f3d9b4'; }else { label.bgColor = 'red'; } } function onSelect(ev,index){ data[index].type = data[index].type ? false : true; record_slide_list.setItem(index,data[index]); } 请...

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

1270. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 49%]

...ei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.stage.addChild(label); return label; } })(); ```

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