大约有 238 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
...y<any> = e.touches; if (touches && touches.length == 2) { this.preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); ...
来源: Laya_社区 发布时间: 20180301
...= 0; Laya.timer.loop( 500, this, function () { i = i < (arr.length - 1) * 6 ? i + 1 : 0; this.noticeList.scrollBar.value = i * 5 if (i % 6 == 0) { console.log("在这里停止", i) } else{ console.log("在这里开始", i) ...
来源: Laya_社区 发布时间: 20170705
...tion.y; this.distance = Laya.Vector2.scalarLength(this.disVector1); this.twoFirst = false; } else{ this.disVector2.x = touch.position.x - touch2.position.x;...
来源: Laya_社区 发布时间: 20190531
...引范围,则终止该函数 if(index > json.length)return; //获取当前渲染条目的数据 var data = json[index]; cell._childs[0].text=data.text.text; cell._childs[1].te...
来源: Laya_社区 发布时间: 20180717
...置了 this.socket.endian = Laya.Socket.BIG_ENDIAN; pkg.writeUint16(buffer.length + 2); // 我自己定义的协议,前两个字节存储整个数据的长度 pkg.writeUint16(this._protoIDs[name]); // 再两个字节存放我要发送协议映射好的id pkg.writeArrayBuffer(buffer); //把打包...
来源: Laya_社区 发布时间: 20171018
...width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.setTo(tex2d); } 附件 : --> demo.zip 2021-01-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20210114
....source.bitmap.getPixels(); //console.log("0000000000000 == " + uint8Array.length); imageNode.source.bitmap.setPixels(uint8Array,0); 附件 : --> 2019-09-23 3 条评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么...
来源: Laya_社区 发布时间: 20190923
...letonList的remove会继续进过逻辑: var end = this.elements[this.length]; this.elements[index] = end; end._setIndexInList(index); 这时候就会把队尾的元素插到下标-1那边。 这样的情况出现第二次以上时,就会把上一次被丢到下标-1的元素丢失,从...
来源: Laya_社区 发布时间: 20220707
...了 var mesh:Laya.MeshSprite3D; for(var i =0;i<this.sprite3D._childs.length;i++){ mesh = this.sprite3D.getChildAt(i) as Laya.MeshSprite3D; mesh.meshRender.material = material; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) } 附件 : --> 2017-11...
来源: Laya_社区 发布时间: 20171110
... for (var i:int = 0; i < skinnedmesh.skinnedMeshRenderer.sharedMaterials.length;i++ ){ skinnedmesh.skinnedMeshRenderer.sharedMaterials[i].lock = true; } })); ``` ##### 3D批量加载时,资源上锁 在批量加载资源的时候,无法拿到回调值。这时候就需要开发者通过 `Lay...
来源: Laya2.0_文档 发布时间: 20210715