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

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

441. 资源内存释放问题 [ 55%]

...Loader.loadedMap,最后结果都是一样的。测试代码如下     for (var path of depPath) {                 var dPath: string = "res/" + path;                 // var resource: Laya.Resource = Laya.loader.getRes(dPath);                 // if ...

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

442. matter 2d 碰撞检测 [ 55%]

...collisionActive', this.onCollision);   private onCollision(event): void { for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(pair.bodyA.label === 'gun' && pair.bodyB.label == "gameover") { this.onGameOver(); }  } }   private onGameOver(): void { console.log...

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

443. 大图片资源发布UI的时候中文文件名称会乱码 [ 54%]

...而且.rec文件总是只有0 The precede value represent a timestamp is for atlas packing.这个内容 2017-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 方便提供个例子我...

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

444. 用LayaIDE 创建ActionScript 项目后,编辑器一大堆报错是怎么回事? [ 54%]

...一大堆报错是怎么回事? 我是新手,刚下载使用LayaAirIDE for mac 1.7.6。 用LayaAirIDE 创建新项目,选择AS3项目,创建完成后,编辑器一大堆报错。可是又好像不影响运行,请问这是怎么回事? 看了下,貌似是找不到flash包里的类导...

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

445. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 54%]

...一帧的索引值, */ function aniUrls(aniName,length){ var urls = []; for(var i = 0;i<length;i++){ //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("role/"+aniName+i+".png"); } return urls; } ``` 代码运行效果如动图9所示,只播放了图集中设置...

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

446. parameter 2 is not of type 'WebGLTexture' [ 54%]

...ist on type 'typeof Laya' Spine 格式转换, Error: Invalid timeline type for a slot:twoColor XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node &amp; ChildNode'. 读URL parameter textinput(type=password)手机打开华为安全键盘后,无法关闭(官网...

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

447. 在Chrome下Layaair的List组件无法拖动,报如图错误 [ 54%]

...错误 Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.   附件 : --> 2017-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

448. ts继承后,代码压缩的问题 [ 54%]

...of Array &amp;&amp; function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p] } ; return function(d, b) { extendStatics(d, b); function __() { this.constructor = d } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __) ...

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

449. 关于checkbox全选的问题 [ 54%]

... 2017-10-19 16:53 if(invite.cb_all.selected){ trace(&quot;全选&quot;); for(var i:int=0;i&lt;invite.inviteList.length;i++){ trace(&quot;{第 &quot;+i+&quot; 个}&quot;); invite.inviteList.setItem(i,{selected:true}); } 是这么想的,但是不知道是不是写法不对,设置后无效 用invite.in...

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

450. 关于一个帧率性能的问题 [ 54%]

...比的是同一款游戏,实现方式不同而已。代码都很简单,for循环都很少,对象用Laya.Pool管理,cacheAs大的容器都用“bitmap”,静态动态对象分开挂了。但帧率就是没有提升,有没有针对Canvas的优化方法,文档没有提到的。

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