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

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

121. 使用getChildByName()无法得到子节点对象 [ 84%]

...cell._childs[1].text=data.listNumber.text;             console.log(index)             //根据子节点的名字listNumber,获取子节点对象。             var listNumber1 = cell.getChildByName("text");             // var text = cell.getChildByNa...

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

122. Ts简单对象池 [ 83%]

...必须保证池中最少存在1个 if (this.m_ObjectPoolDic[key]){ console.log("初始化有误,该值已经有对应的 对象池了"); } else{ this.m_ObjectPoolDic[key]=new QueueT<Laya.MeshSprite3D>(); this.m_ObjectPoolDic[key].push(MeshSprite); } }  //按照编号取出对应对象池中...

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

123. 关于HttpRequest [ 83%]

...a.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.com/git/test.php', s, 'post', 'text'); L...

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

124. linearVelocity 获取的线速度不正确 [ 83%]

...    this.rigidbody.linearVelocity = vectory;         console.log("施加的线速度:");         console.log(vectory);         console.log("获取得到的线速度:");         console.log(this.rigidbody.linearVelocity);     附件 : --> 2020-03-30 添加...

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

125. 关于lookAt触发的bug?(缩放问题) [ 83%]

...bug,将其缩放又复原了),在其物体缩放(变大)前后,log输出的scale,以及localScale依旧为1。 ,昨天看了几个小时,愣是没看出是哪里的问题,所以希望看看是不是真存在bug。能给个解决下,以及问个问题,在unity里编辑时,...

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

126. HttpRequest在网页上和APP上表现不一致 [ 83%]

...    hr.http.timeout = 3000;     hr.http.ontimeout = function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");});     hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: error " + ...

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

127. mac安装typescript的问题 [ 83%]

...script" npm ERR! node v4.4.1 npm ERR! npm v2.14.20 npm ERR! path npm-debug.log.532595257 npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall open npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.532595257' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, op...

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

128. js如何解析nettywebsocket发的二进制数据中的utf8汉字 [ 83%]

...; js: ws.onmessage = function (e) { var view=new DataView(e.data); console.log(view.byteLength);//7 console.log(view.getInt32(0));//3 console.log(view.getInt8(4),view.getInt8(5),view.getInt8(6));// -28 -67 -96 console.log(new Uint8Array(view.buffer));//Uint8Array(7) [0, 0, 0, 3, 228, 189, 160]   ...

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

129. Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 [ 83%]

... down2() { this.a = Laya.stage.mouseX; this.b = Laya.stage.mouseY; console.log("鼠标点击的点" + this.a, this.b) Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.move2) } move2() { this.path.push(Laya.stage.mouseX, Laya.stage.mouseY); // console.log("移动的点集合" + this.path); this.ps.gra...

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

130. 关于骨骼适配的问题 [ 83%]

...ZONE 微信 yzbgyc 赞同来自: 压缩包内包含两个之日,一个是log.txt另一个是log2.txt 因为我看到第一个log缺少map文件,然后我就把发布后的工程,增加了 相关的*.map但是我不理解的时候,为什么 会用到这个map文件,而没有问题的机器 ...

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