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

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

441. 网格像素线 · LayaAir3.4 · 引擎文档 · LAYABOX [ 55%]

...sh.getPositions(positions); var indices = mesh.getSubMesh(0).getIndices(); for (var i: number = 0; i < indices.length; i += 3) { var vertex0: Laya.Vector3 = positions[indices[i]]; var vertex1: Laya.Vector3 = positions[indices[i + 1]]; var vertex2: Laya.Vector3 = positions[indices[i + 2]]; Laya.Ve...

来源: Laya3.0_文档 发布时间: 20251010

442. 发布之后报错,跨域问题 [ 55%]

...aweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classic_numbers_8.png' from origin 'null' has been blocked by CORS po...

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

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

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

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

444. 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

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

...一帧的索引值, */ 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. 大图片资源发布UI的时候中文文件名称会乱码 [ 55%]

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

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

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

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

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

448. 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

449. 在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

450. 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