大约有 336 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0038 秒)
Laya_社区(177) Laya2.0_文档(60) Laya3.0_api(24) Laya_示例(21) Laya2.0_api(20) laya_api(19) Laya3.0_文档(15)
...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
...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 = "...
来源: Laya_社区 发布时间: 20170502
....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
...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
...。 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
...amera = this.scene.addChild(new 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. //没有...
来源: Laya_社区 发布时间: 20170321
...加别的组件的情况下只导出一个空白节点吗,只需要用其transform中的position? 2017-10-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 2017-10-18 0 0...
来源: Laya_社区 发布时间: 20171018
...回复 Laya_XS 赞同来自: 你可以通过 var matrix = Laya.stage.get_transform(); 第一个方法: matrix.tx += 100;//水平方向移动; matrix.ty += 100;//垂直方向移动; 第二个方法: matrix.translate('水平方向移动','垂直方向移动'); 2020-08-25 0 4 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20200825
... Laya.PointLight()) as Laya.PointLight; //设置点光源位置 pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点光源的范围 pointLight.range = 6.0; ``` **range** 为设置点光源的范围,相当于点光的照射范围,数值越大,光照范围越大。 图1...
来源: Laya2.0_文档 发布时间: 20210714
...; //加载到场景 scene.addChild(camera); //旋转摄像机角度 camera.transform.rotate(new Vector3( -25, 0, 0), false, false); //移动摄像机位置 camera.transform.position=new Vector3(0, 5, 10); //加入摄像机移动控制脚本 //camera.addComponent(CameraMoveScript); //添加蒙皮动...
来源: Laya_社区 发布时间: 20190416