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

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

21. 问下,3D模型导出有什么要求 [ 88%]

...色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Vector3(0.6, 0.6, 0.6); directionL...

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

22. transform的旋转和移动是异步方法吗? [ 88%]

...了添加到场景中的代码 // 先移动锚点 cube.transform.pivot = new Vector3(                 cube.transform.pivot.x + 0,                 cube.transform.pivot.y - height/2,                 cube.transform.pivot.z - width/2); // 旋转             c...

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

23. 多重遮罩显示异常 [ 88%]

...ds Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = 500; this.panel.vScrollBarSkin = ''; this.panel.hScrollBarSkin = '...

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

24. 如何移动sprite3d [ 88%]

...41 浏览: 898 关注: 2 人 176*****233 • 2018-01-25 11:44 this.scene = new Laya.Scene(); this.pos = new Laya.Sprite3D(); this.scene.addChild(this.pos); this.camera = new Laya.Camera(); this.pos.addChild(this.camera); this.camera.transform.translate(this.cameraTrans, false); this.camera.transform...

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

25. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 88%]

...了各自的ui.xxxUI   2.新建了个场景添加到B页面 this.scene = new Laya.Scene(); this.addChild(this.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map);   4.切换页面 private playGame(): void { Laya...

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

26. RenderTexture 无法再image上显示 [ 88%]

....CameraClearFlags.SolidColor;           this.modelCamera.clearColor = new Laya.Vector4(0, 0, 0, 0);           this.modelCamera.renderTarget = new Laya.RenderTexture(512, 512, Laya.RenderTextureFormat.R8G8B8A8, Laya.RenderTextureDepthFormat.DEPTHSTENCIL_24_8);           this.modelCamer...

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

27. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 87%]

...ge.SCREEN_NONE;         Laya.Stat.show();         this.tmpVector = new Laya.Vector3(0, 0, 0);         this.scene = Laya.stage.addChild(new Laya.Scene3D());         //初始化照相机         let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100));         camera.tran...

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

28. 移动Sprite时,边缘闪烁 [ 87%]

...otale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() - lastTimestamp; lastTimestamp = new Date().getTime(); count++; totale += deltaTime; this.x += this.speed_x*deltaTime; this.y += this.speed_y*deltaTime; });用以上代码移动一个继承Sprite的对象...

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

29. 浏览器失去焦点的时候能强制保持帧频吗? [ 87%]

...Sound; protected function wakeUp():void { /*强迫至少保持8FPS sound = new Sound(new URLRequest("")); sound.play(); sound.close(); */ //*/强迫保持原本设定的FPS try { sound = new Sound(); sound.addEventListener(SampleDataEvent.SAMPLE_DATA,onWakeUp); channel = sound.play(); }catch(error:E...

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

30. laya ide使用f12发布资源失败的情况 [ 86%]

...下的小图资源? mac 用layaair2.0 ide 的编辑模式下,cpu爆满 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 问题状态 最新活动: 2019-09-11 21:36 浏览: 701 关注: 1 人

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