大约有 237 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(130) Laya2.0_文档(41) Laya3.0_api(24) Laya_示例(21) Laya3.0_文档(13) laya_api(4) Laya2.0_api(4)
... // 如下 /** sp3d.transform.localPosition = origin; sp3d.transform.localRotationEuler = origin; sp3d.transform.localScale = origin; */ }) 同...
来源: Laya_社区 发布时间: 20200817
...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
...围90度 camera.fieldOfView = 90; //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position,new Laya.Vector3(0,-1,0)); 2017-08-09 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 好的,多多分享,这样也可以让更多的开发者受教(*^__^*) …… 2017-08-09...
来源: Laya_社区 发布时间: 20170809
...ert (appdata v) { v2f o; o.vertex = UnityObjectToClipPos(v.vertex); o.uv = TRANSFORM_TEX(v.uv, _MainTex); o.uv2 = TRANSFORM_TEX(v.uv2, _MainTex); UNITY_TRANSFER_FOG(o,o.vertex); return o; } fixed4 frag (v2f i) : SV_Target { // sample the texture fixed4 col1 = tex2D(_MainTex, i.uv); fixed4 col2 = ...
来源: Laya_社区 发布时间: 20190422
...同来自: let out = window.app.fcUtil.worldToViewportPoint(this.owner.transform.position, window.GameMag.Camera1); this.hpNode.x = out.x - this.hpNode.width / 2 this.hpNode.y = out.y + this.hpNode.height *3.5 //this.owner.transform 3d的物体 //this.hpNode 2d的ui //3d坐标转2d...
来源: Laya_社区 发布时间: 20201110
...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
...er.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.Animator; //动画完成事件监听 this.roleAni.on(Laya.Event.COMPLETE...
来源: Laya_社区 发布时间: 20171113
....addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())); earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, fun...
来源: Laya2.0_文档 发布时间: 20210714
...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
....ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function ()...
来源: Laya_示例 发布时间: 20251130