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

大约有 6 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0023 秒)

1. new vector2报错 [ 100%]

new vector2报错 let pos: Laya.Vector2 = new Laya.Vector2(100, 100); 直接就包了一个异常 "Laya.Vector2 is not a constructor" 这是为什么   版本1.7.20 beta 附件 : --> 2018-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

2. Vector 向量如何创建? 在2d微信小游戏中 [ 83%]

...2d微信小游戏中 在微信2d工程里面 创建向量  var v = new Vector2(); 会报错   TypeError: Vector2 is not a constructor 2018-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 c__yh 赞同来自...

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

3. 摄像机的viewportPointToRay报错 [ 71%]

...43P1%XK0EMLAZO8{}XNAMK.pngB43P1%XK0EMLAZO8{}XNAMK   private pointRay:Laya.Vector2 = new Laya.Vector2(); private hitresult:Laya.HitResult = new Laya.HitResult(); private UpdateRay() { //射线初始化(必须初始化) //获取鼠标在屏幕空间位置  this.pointRay.x = Laya.MouseManager.ins...

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

4. android下layabox调用Laya.Texture2D.load报错 [ 60%]

...e; var transformUV = new Laya.TransformUV(); transformUV.tiling = new Laya.Vector2(2, 1); // transformUV.offset = new Laya.Vector2(0.1, 0.1); material.transformUV = transformUV; } return D3Helper.materialDic[name]; };   2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

5. 射线检测报错,outHitInfo.sprite3D=null; [ 56%]

...); }  private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physics.rayCast(this.ray,this.hit); console.log("当前射线碰撞的信息是:" + this.hit.sprite3D.name); //摄像机位置 var p...

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

6. Cannot read property 'toDefault' of undefined报错是什么原因 [ 55%]

...w Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); // this.phasorSpriter3D = new Laya.PhasorSpriter3D(); } MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(stat...

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