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

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

41. 微信小游戏wxmin图片加载有点问题 [ 74%]

...相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionL...

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

42. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 74%]

...me = "camera";         //相机平移位置         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         //旋转相机         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光 ...

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

43. 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? [ 73%]

...ox = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.translate(new Laya.Vector3(10, 10, 10)); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); ...

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

44. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 73%]

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

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

45. 创建材质(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 71%]

...ddChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex){ //纹理加载完成后赋值...

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

46. 创建材质(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 71%]

...ddChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex){ //纹理加载完成后...

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

47. 3D模型加载出错 [ 71%]

...       this.box=scene.addChild(sp);             this.box.transform.rotate(new Laya.Vector3(30, 0, 0), false, false);         })); 附件 : --> 2019-05-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

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

...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

49. 创建材质(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 71%]

...d(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理...

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

50. 3D支持图集吗? [ 70%]

...w Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); material.albedoTexture = Laya.Texture2D.load("magic/sg.png"); box.meshRender.material = materia...

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