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

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

571. 自定义shader-地形shader [ 65%]

....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 () { setCustomMaterial(scene...

来源: Laya_示例 发布时间: 20240930

572. 我想问下,在Laya3D中,如果我想改变场景的亮度要怎么处理?我没有开启光照,想通过修改shader的方式把场景调亮,但是不知道Laya场景的Shader使用的是哪个?在哪个位置?要如何处理? [ 65%]

...场景的亮度 ,尝试过调环境光, level.ambientColor = new Laya.Vector3(1,1,1); 但没用。   上面你说的调漫反射,我记得漫反射是在有实时光的条件下才有用,而我的问题环境是没有实时光,请问这个要怎么解决? 2017-11-30 0 3 分享 微博 Q...

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

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

...w 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. //没有delta 属性 } } } new laya.In...

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

574. 摄像机挂在主角身上,主角通过position移动,摄像机没有移动,如果主角通过translate来移动,摄像机才会移动 [ 65%]

...候是正常的,但是直接跑就有问题。 bing • 2017-06-13 17:17 Vector3.ZERO.cloneto(transform.position); 这种代码也移动不了。 需要用 transofrm.position = Vector3.ZERO; 才可以 183*****755 • 2017-06-14 23:06 楼上说的处理方法很正确,最终的计算结果需...

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

575. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 65%]

...b,但是更新后返回的d的数据         var startPoi=new Laya.Vector3(this.Bullet.transform.position.x,this.Bullet.transform.position.y,this.Bullet.transform.position.z-0.5);//起始点         var dir = new Laya.Vector3(0,0,-1);//方向         var ray:Laya.Ray = new Laya.Ray(sta...

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

576. unity导出动画如何使用 root motion node [ 65%]

...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...

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

577. laya.d3.physics.RaycastWheel_API3.0 [ 65%]

...trix4x4() Defined in laya/d3/physics/RaycastWheel.ts:13 worldPos worldPos: Vector3 = new Vector3() Defined in laya/d3/physics/RaycastWheel.ts:9 worldQuat worldQuat: Quaternion = new Quaternion() Defined in laya/d3/physics/RaycastWheel.ts:10 Accessors brake get brake(): number set brake(v: number): v...

来源: Laya3.0_api 发布时间: 20231115

578. 给模型动态添加脚本报错 [ 65%]

...              goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() * 5));                 console.log('----------------goldnode', goldNode);      ...

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

579. timer无法执行 [ 65%]

...ere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D); ballrigid.colliderShape = new Laya.SphereColliderSh...

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

580. laya.d3.core.material.PBRMaterial_API3.0 [ 65%]

...PropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVector3 getVector3ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByI...

来源: Laya3.0_api 发布时间: 20231115