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

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

391. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 69%]

...MeshSprite3D; //将创建的球放置在导出球的同一点 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

392. 1.7.18beta下转换3D坐标不正确 [ 68%]

...is._position.x = Math.sin(this.scaleDelta += 0.01);    this.layaMonkey3D.transform.position = this._position;    this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this._outPos);    this.layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX...

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

393. 2.2.0beta微信开放域无法点击 [ 68%]

...pendata.y);         var stage=Laya.stage; //mat.scale(stage._canvasTransform.getScaleX()*opendata.globalScaleX *stage.transform.getScaleX(),stage._canvasTransform.getScaleY()*opendata.globalScaleY *stage.transform.getScaleY()); mat.scale(stage._canvasTransform.getScaleX(),stage._canvasTransf...

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

394. 720 全景图 手指滑动 滑动距离 [ 68%]

...SHADING; 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(-30, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new ...

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

395. Laya2.7.1 射线提示rayCast未定义 [ 68%]

....camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); } onEnable() { Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this._onStageDown); } _onStageDown() { //创...

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

396. 回调函数传递sprite3D问题 [ 68%]

...0 - cameraY) + ( 0 - cameraZ)*( 0 - cameraZ)); camera.viewport.project(spr.transform.position, camera.projectionViewMatrix, _outPos); msg1.scale(300/xp, 300/xp); msg1.pivot(msg1.width,msg1.height); msg1.pos(_outPos.x / Laya.stage.clientScaleX,(_outPos.y / Laya.stage.clientScaleY)-20); }我这样写 ...

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

397. 怎么才能像HTML5中那样直接操作Canvas [ 68%]

...e="position: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0); transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0);"></canvas> var canvas:any = document.getElementById("layaCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = &quot...

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

398. laya3d的scene里边怎么能添加2d的显示对象? [ 68%]

...象有效果,请问如何实现? 或者如何让2d显示对象能实现Transform3D坐标转换。 2018-09-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复   赞同来自: http://layaair.ldc.layabox.com/demo...

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

399. PBR标准材质实时阴影渲染问题 [ 68%]

...mera = new Laya.Camera(0, 0.1, 100); // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var direct...

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

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

...。 Sprite3D 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  Sprite3D(na...

来源: laya_api 发布时间: 20170929