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

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

151. PC端web应用开发,想把生成的canvas放进一个div中并调整在页面上的位置,请给出一个方案。 [ 68%]

...on: absolute;  left: 0px;  top: 0px;  background: rgb(255, 255, 255);  transform-origin: 0px 0px 0px;  transform: matrix(0.8, 0, 0, 0.8, 0, 0);   但我想把该canvas放进一个div中,然后把div在页面上调整位置。该怎么弄?   我试过把position改成static或relative,...

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

152. camera.addComponent(CameraMoveScript)报错 [ 68%]

...// 加载到场景 scene.addChild(camera); // 移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); // 旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), false); // 设置摄像机视野范围(角度) camera.fieldOfView = 50; // 设置背景颜色 ...

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

153. laya.d3.core.Sprite3D [ 68%]

...only] 父节点。Node scene : *[read-only] 获得所属场景。 Node  transform : Transform3D[read-only] 获取精灵变换。 Sprite3D  url : String[read-only] 获取资源的URL地址。 Sprite3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  ...

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

154. Laya截图3D场景相关模型,导致模型透视! [ 68%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.position = new Laya.Vector3(0, 0, 10); camera.transform.rotate(new Laya.Vector3(0, 180, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); th...

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

155. 3D模式下使用Tween使模型移动如何写法 [ 68%]

...englongyu/denglongyu1.jpg"); fish.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); fish.transform.localPosition = new Laya.Vector3(0,1,0); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动鱼 Laya.Tween.to(fish,{x:-1},3000,Laya.Ease...

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

156. laya.d3.core.glitter.Glitter [ 68%]

...板。 Glitter timer : Timer时间控制器,默认为Laya.timer。Node transform : Transform3D[read-only] 获取精灵变换。 Sprite3D url : String 获取资源的URL地址。 Sprite3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  Glitter() 创...

来源: laya_api 发布时间: 20170929

157. Laya 绑定显示内容到骨骼动画 [ 68%]

...ya.maths.Matrix=bone.getResultMatrixByFrame(skeleton.index); result=matrix.transformPoint(result); return result; } }     以上是自定义代码部分,下面是laya源码的修改:   1. laya.ani.js 文件中 Bone 类中添加通过帧数来获取矩阵的方法 //返回变化矩阵    ...

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

158. Laya3D 官方请看:有关Laya.MeshSprite3D.instantiate的Bug [ 68%]

...ntiate(temp,scene) as Laya.MeshSprite3D;  if(index == 0)  {  this.model.transform.position = new Laya.Vector3(0.8,0,0);  }  });    //===================报错====================== let temp:Laya.MeshSprite3D = Laya.MeshSprite3D.load("res/Coin/layaScene.lh") as Laya.MeshSprite3D; scene.addChil...

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

159. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 68%]

...phere(0.5))); //将创建的球放置在导出球的同一点 this.sphere2.transform.position = this.sphere.transform.position; //将创建的球平移 this.sphere2.transform.translate(new Laya.Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 this.sphere2.meshR...

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

160. 新手的伤,ReferenceError: CameraMoveScript is not defined [ 67%]

...; //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 35; //设置背景颜...

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