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

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

101. HIERARCHY_LOADED函数不回调 [ 73%]

...Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.transform.localPosition = new...

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

102. 我想用代码来绘制一个3D球如何弄呢?看我写的 [ 73%]

...e()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); // camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); // camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); //球体 var sphere = new Laya.SphereM...

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

103. [BUG]刚体约束问题,移动后约束混乱! [ 73%]

...addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;     camera.transform.translate(new Laya.Vector3(0, 3, 30));          //方向光     const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;     directionLight.color = ne...

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

104. 释放资源报错 [ 73%]

...  if (this._cacheRootBone){             this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform是空的   这个精灵是 SkinnedMeshRenderer绑定的RootBone的...

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

105. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 73%]

...amera = this.scene.addChild(new Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } private onMouseWheel(e:Event):void { e. //没有...

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

106. laya.d3.core.Sprite3D [ 72%]

...。 Sprite3D timer : Timer时间控制器,默认为Laya.timer。Node  transform : Transform3D[read-only] 获取精灵变换。 Sprite3D  url : String 获取资源的URL地址。 Sprite3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  Sprite3D(na...

来源: laya_api 发布时间: 20170929

107. LayaBox现在支持骨骼动画的具体骨骼旋转等操作么。findBone()获取的不是具体骨个么?用了后没有生效 [ 72%]

...e("头"); let angle:number = Math.atan2(Laya.stage.mouseY - (this.y - bone.transform.y), Laya.stage.mouseX - (this.x - bone.transform.x))*180/Math.PI; angle = Math.floor(angle); bone.rotation =angle; 2018-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

108. laya 3D碰撞器与 Unity 不一致问题 [ 72%]

...移 laya预览效果与Unity运行效果一致   将下图上方的cube Transform属性的Scale 设置为5:1:1的比例将X轴 Scale 拉伸5倍后 再讲BoxCollider的Center属性 x 设置为偏移 -0.3 得到如下效果     接下来我们来看看unity 的运行效果: unity 运行效果图...

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

109. 1.7.18beta下转换3D坐标不正确 [ 72%]

...is._position.x = Math.sin(this.scaleDelta += 0.01);    this.layaMonkey3D.transform.position = this._position;    this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this._outPos);    this.layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX...

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

110. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 72%]

....onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents.x; this.osizez = other._transformOrientedBoundBox.extents...

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