大约有 1,020 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
... camera.position; viewDir = camera.position - lineMesh.transform.position; console.log(viewDir); lineMesh.transform.lookAt(new Laya.Vector3(3, 3, 3), viewDir, true); } 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...
来源: Laya_社区 发布时间: 20170613
...移动了坐标变成了负数 比如: TiledMap.moveViewPort(100,100) console.log(TiledMap.X, TiledMap.Y); 输出结果是 -100,-100 这是为啥? 我强行加入了 - 就可以了 let tmapsp=this.tMap.mapSprite(); tmapsp.zOrder=1; this.tMap.changeViewP...
来源: Laya_社区 发布时间: 20200420
...cpet msg: " + e.data); }; ws.onerror = function(e) { alert("error: " + e); console.log(e) }; </script> </body> </html> 这是app设置的url所对应的html文件,在web端是能连上socket的,app里面就连不上 (简单起见这里直接使用原生websocket,使用la...
来源: Laya_社区 发布时间: 20181018
... str = hit.sprite3D.name + " "; } console.log(str); }); 2017-09-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 请参考:https://ldc.lay...
来源: Laya_社区 发布时间: 20170915
...seBtn.on(Event.CLICK,this,this.closeWin); private closeWin():void { console.log("the window has closed..."); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: R...
来源: Laya_社区 发布时间: 20170920
...; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) } 附件 : --> 2017-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdandan 赞同来自: MorningPark 、Lay...
来源: Laya_社区 发布时间: 20171110
.../ 2; this.addChild(test); test.on(Laya.Event.MOUSE_MOVE, this, (e) => { console.log(e); }); 监听mouse_move事件后,手指在test上滑动,会报错: 附件 : --> 2017-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20170806
... this.initLineView(); } public initLineView (data) : void { this.pos(0,0); console.log(this.textfield); if (this.textfield == null) { var stextfield = new HTMLDivElement(); } } 2018-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20180709
....Text(); text.pivot(text.width / 2, text.height / 2); text.pivot(200,200); console.log(text.pivotX, text.pivotY); 打印显示都是0 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人...
来源: Laya_社区 发布时间: 20180322
...vent.MOUSE_DOWN, this, function (): void { console.log("点击"); var htmlCanvas:Laya.HTMLCanvas = Laya.stage.drawToCanvas(1334, 750, 0, 0);//把精灵绘制到canvas上面 var sp:Laya.Sprite = new Laya.S...
来源: Laya_社区 发布时间: 20190816