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

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

41. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 89%]

...ge.addChild(new Laya.Image("../../res/threeDimen/texture/earth.png")); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya...

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

42. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 89%]

...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, f...

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

43. 3D阴影无法渲染出来 [ 89%]

3D阴影无法渲染出来 //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight...

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

44. 没有人尝试使用3d物理引擎么 [ 89%]

...nLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.QuadMesh; imp...

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

45. laya.display.Scene [ 89%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames SceneProperties | Methods | Events Packagelaya.displayClasspublic class SceneInheritanceScene Sprite Node EventDispatcher Object 场景类,负责场景创建,加载,销毁等功能 场景被从节点移除后,并...

来源: Laya2.0_api 发布时间: 20190513

46. 想要找设置相对坐标后的view全局坐标,发现有问题,请教一下. [ 88%]

...图中红色框   而view在UI编辑器里,设置的也是相对另一个scene的相对坐标, 所以层级是以下这样的. stage->scene->view->userPanel   scene 坐标设置为左上角相对于stage的全局坐标 x,y, view 坐标设置为相对于scene的相对坐标, 即: left top ...

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

47. u3d 插件导出 简单场景,用最新引擎无法加载成功 [ 88%]

...600,400); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; //创建场景 var scene  = new Laya.Scene(); Laya.stage.addChild(scene); //创建摄像机 var camera = new Laya.Camera(); scene.addChild(camera); camera.transform.localPosition = new Laya.Vector3(0,4,10); //载入并显示3D建筑 var map = ...

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

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

...); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; // Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = this.scene.addChild(new Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new La...

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

49. laya.ui.View [ 88%]

... | Methods | Events Packagelaya.uiClasspublic class ViewInheritanceView Scene Sprite Node EventDispatcher ObjectSubclasses Dialog, MoreGame View 是一个视图类,2.0开始,更改继承至Scene类,相对于Scene,增加相对布局功能。 Public Properties Hide Inherited Public Properti...

来源: Laya2.0_api 发布时间: 20190513

50. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 88%]

...ode = "none"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left";  let scene = Laya.stage.addChild(new Laya.Scene3D());  let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0),...

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