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

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

181. 自定义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

182. 使用的模型动画 播放完了 怎么让他可以在2D的情况下x,y方向移动 [ 64%]

...NE 微信 Supermang42 赞同来自: 改變layaMonkey的localPosition = new Vector3( 1, 1, 0 );   可以類似這樣寫 var Mesh_Boss = new MeshSprite3D( Mesh.load( Consts.Mesh_Boss01 ) ) as MeshSprite3D; Mesh_Boss.transform.localPosition = new Vector3( -7.36, -1.03, 0 );   2017-07-26 0 0 分享 ...

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

183. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 64%]

...... var ele=eleroot.getChildAt(0).clone(); ele.transform.position=new Laya.Vector3(0, 0, 0); scene.addChild(ele); ... ele.transform.rotate(new Laya.Vector3(10, 0, 0), true); //这里会有效 ele.transform.localRotation=new Laya.Quaternion(0, 0,0,0); //这里也还是有效的 ele.transform.rotate(n...

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

184. Laya2.3.1 unity导出的boxcollid碰撞问题 [ 64%]

...ransformation函数修改下: var physicPosition = PhysicsComponent._tempVector30; Vector3.multiply(shapeOffset, scale, physicPosition); Vector3.transformQuat(physicPosition, rotation, physicPosition); 就可以了

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

185. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 64%]

...ra(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.addChild(new Laya.DirectionLight...

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

186. 720 全景图 手指滑动 滑动距离 [ 63%]

...ddChild(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.SkyBox(); camera.sky = s...

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

187. 为unity导出的场景种的模型添加碰撞器失败 [ 62%]

...1); this.myCar = this.scene1.getChildByName("myCar"); var scale = new Laya.Vector3(2, 2, 2); this.myCar.transform.localScale = scale; let a = this.myCar.addComponent(Laya.PhysicsCollider); }报错如附件中图片。 附件 : --> 2019-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

188. 屏幕适配怎样实现铺满全屏,又不被拉伸? [ 62%]

... 问题状态 最新活动: 2019-09-28 13:44 浏览: 6564 关注: 16 人 vector 1 • 2018-08-30 20:43 大佬,3d部分怎么处理的 内涵tv何吓吓 • 2019-04-19 16:46 大佬,这是重写不是重载吧,也就是,需要到子类里重写...

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

189. StaticModel_MeshSample例子运行不起来 [ 62%]

...1, 100)) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         var mesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/staticModel/sphere/sph...

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

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

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