大约有 195 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
用1.01导出的场景加载失败 提示 Sprite3D: the .lh file root type must be Sprite3D,please use other function to load this file. 我的代码 var scene = Laya.Sprite3D.load("unity/LayaScene_1/1.lh"); SceneManager.Instance().AddChild(scene); 2017-05-31 添加评论 免费帖...
来源: Laya_社区 发布时间: 20170531
...型移动如何写法 //载入并显示鱼模型 var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu...
来源: Laya_社区 发布时间: 20170918
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 分享:适配LayaAir版本的PureMVC框架 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target La...
来源: Laya_社区 发布时间: 20190313
...体 onTriggerEnter 触发一次之后就不触发了 (有悬赏) 两个sprite3D,上面加了meshCollider, 其中一个加了刚体,第一次碰撞之后会触发onTriggerEnter ,碰撞之后其中一个会active = false,之后再激活碰撞就不触发了,有谁遇到过吗,简单的...
来源: Laya_社区 发布时间: 20191215
...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 加载到舞台的3D模型不显示贴图 微信小游戏:HTMLDivEleme...
来源: Laya_社区 发布时间: 20170914
...static function OnCreateComplete1():void{ trace("complete load role"); var sprite3D:Sprite3D = Laya.loader.getRes("laya_assert/LayaScene_role/role.lh"); mainScene.addChild(sprite3D); } 上面是我加载的代码。mainScene是我缓存的scene变量。 附件 : --> 2018-11-17 添加评论 免费帖...
来源: Laya_社区 发布时间: 20181117
...ew Laya.Vector3(-1, -1, -1); light4.color = new Laya.Vector3(1, 1, 0); var sprite3D = scene.addChild(new Laya.Sprite3D()); //添加自定义模型 var box = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.position = new Laya.Vector3(0, 0.5, 0); var material = new L...
来源: Laya_社区 发布时间: 20180103
...1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya....
来源: Laya2.0_文档 发布时间: 20210715
...建了一个平面。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.p...
来源: Laya2.0_文档 发布时间: 20210714
... 4 个回复 183*****755 赞同来自: qq1194265406 var staticMesh = Laya.Sprite3D.load("tlj/tlj.lh"); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { sprite.transform.position = new Laya.Vector3(0,0,-100); }); 在游戏中 调整模型的位置需要在场景加...
来源: Laya_社区 发布时间: 20170316