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

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

141. 关于Laya.Tween 在3d上的应用与缓动的优化 [ 68%]

...   // 如下             /**             sp3d.transform.localPosition = origin;             sp3d.transform.localRotationEuler = origin;             sp3d.transform.localScale = origin;             */         })       同...

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

142. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 67%]

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

143. 摄像机视野、摄像机范围、摄像范围问题 [ 67%]

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

144. [layaair 1.0] 如何支持Unity的含有第二套UV的shader [ 67%]

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

145. 要让2DUI跟随3D物件,比如说敌人头上有血条。请问要怎么做? [ 66%]

...同来自: 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

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

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

147. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 66%]

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

148. Effect材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 66%]

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

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

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

150. 自定义shader-地形shader [ 66%]

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