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

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

91. 3D阴影无法渲染出来 [ 75%]

...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.shadowResolution = 2048; directionLight.shadowPSSMCount = 1; direc...

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

92. U3D场景导不出,出现以下问题。求帮忙导出!!!!! [ 75%]

...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...

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

93. 自定义shader-边缘光照shader [ 75%]

...dChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.85, 1.7)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya...

来源: Laya_示例 发布时间: 20241124

94. 官方LayaAir之灯光一节示例背景在微信里表现不一致 [ 74%]

...Child(camera); //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 4, 8)); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight...

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

95. [laya2.0-2.3]CollisionUtils.ts bug [ 74%]

... out 相交点 */ static intersectsRayAndPlaneRP(ray:Ray, plane:Plane, out:Vector3):boolean { var distance:number; if (!CollisionUtils.intersectsRayAndPlaneRD(ray, plane, distance)) { out = Vector3._ZERO; return false; } Vector3.scale(ray.direction, distance, CollisionUtils._tempV30); Vector3.add(ra...

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

96. 使用layaAir3D从unity3D中导出场景模型时报错 [ 74%]

...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...

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

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

...w 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. //没有delta 属性 } } } new laya.In...

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

98. 3D怎么使用canvas渲染,无论怎么看都是webgl [ 73%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); alert(Laya.Render.isWebG...

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

99. 官方技术文档中的问题 [ 73%]

...dChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null;  //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new La...

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

100. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 73%]

...ddChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vec...

来源: Laya2.0_文档 发布时间: 20210714