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

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

51. 3d场景下面有张2d的图片,当鼠标焦点不在该网页时,2d图片为啥会闪动 [ 88%]

...       sprite0.cacheAsBitmap = true;             Laya.stage.addChildAt(sprite0,0);                          var sprite1:Sprite = new Sprite();             sprite1.loadImage("creatRoom/background_bk.png");             sprite1.pos(Laya.stage._width-512...

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

52. 使用U3D导出粒子特效不显示 [ 88%]

...官方示例脚本,加载一个从U3D导出的2D粒子特效Laya.stage.addChild(Laya.Scene.load(url)) 但是粒子不显示。想问到底这个步骤怎么搞?急急急!!!!我把导出的资源上传了。 附件 : --> LayaScene_1.rar 2018-03-20 添加评论 免费帖 --> 分享 微...

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

53. 使用插件导出模型后,使用js加载ls文件,报错Laya.Scene.load is not a function [ 88%]

...ar scene = Laya.Scene.load("LayaScene_layaScene/layaScene.ls"); Laya.stage.addChild(scene); var camera = new Laya.Camera(0, 0.1, 1000); //加载到场景 scene.addChild(camera); 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

54. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 87%]

...引用其的对象无法销毁         this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.camera.transform.rotate(...

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

55. CameraMoveScript,父对象Camera移除removeAllComponent后,还会继续获取鼠标事件 [ 87%]

...EARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(this.m_sceneCamera); 在destory的时候 this.stage.removeChild(this.m_scene); this.m_sceneCamera.removeAllComponent(); this.m_scene.destroy(); this.m_scene = null; 只会这个Ca...

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

56. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 87%]

...官网例子运行报错。 //=======天空盒子 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加3D场景 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)));//添加照相机 camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0...

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

57. rigidBody.applyForce 物体不会移动 [ 87%]

... Laya.Scene3D(); //将场景加到舞台上 this.scene = scene; Laya.stage.addChild(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var li...

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

58. Resources already exist,is repeated loading 加载特效报重复加载 [ 86%]

...       this.scene = new Laya.Scene3D();         Laya.stage.addChild(this.scene);                     //添加相机         var camera = new Laya.Camera(0, 0.1, 100);         this.scene.addChild(camera);         camera.transform.translate(new ...

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

59. 1.5版本:3D Camera无法使用? [ 86%]

...接 提交 1 个回复 183*****755 赞同来自: this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = (this.scene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可! 2016-10-17 0 0 分享 ...

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

60. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 86%]

...Info.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(Event.MOUSE_OUT, this, this.__onMouseOutHole); } this.pos(this._objectInfo.templateInfo.x, this._objectInfo.templateInfo.y); } private __o...

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