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

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

101. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 67%]

...{ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer...

来源: Laya2.0_文档 发布时间: 20210715

102. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 67%]

...{ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer...

来源: Laya2.0_文档 发布时间: 20210714

103. 如何方便的删除Sprite3D对象,释放其关联资源? [ 67%]

如何方便的删除Sprite3D对象,释放其关联资源? 调用sprite.destroy(true)后,使用chrome查看内存,发现贴图对象,动画对象并没有相应被清理.3D模型该如何干净释放? 2018-04-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

104. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 67%]

...default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smo...

来源: Laya3.0_文档 发布时间: 20231214

105. HTMLCanvas如何挂载 [ 67%]

... Unity3d导出的粒特效导入到laya中,用示例的做法,Laya.Sprite3d.load的方式加载,然后挂载到一个MeshSprite3d上,第一次显示的时候画面会卡一下,请问是什么问题? spine 骨骼动画不支持插槽挂载节点功能吗,后续会扩展支持吗,...

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

106. 挂载物体的3D变换问题 [ 66%]

...r cylinderMesh:CylinderMesh=new CylinderMesh(0.05,2,8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role.get...

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

107. 使用StaticBatchManager,显存无法释放 [ 65%]

...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mas...

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

108. 对象池3D问题 [ 65%]

...ne.lh", Laya.Handler.create(this, function(){     var layaMonkey =Laya.Sprite3D.load("fish/denglongyu/layaScene.lh"); scene.addChild(layaMonkey) layaMonkey.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); layaMonkey.transform.position = new Laya.Vector3(0, 0.5,0); // layaMonkey.transform...

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

109. 阴影太浓怎么变淡?看到说directlight.ambientColor,但这ambientColor属性没有 [ 65%]

...我将地面 var mat: Laya.StandardMaterial = (this.floor.getChildAt(0) as Sprite3D).meshRender.material as Laya.StandardMaterial; mat.ambientColor = new Vector3(0.5,0.5,0.5); 这样确实阴影变淡了,可地面也变色了。。。怎么办?我只要阴影变淡,不想其它的变色 2018-0...

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

110. 射线一直无法获取物体 [ 64%]

...法获取物体     添加物体:  var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh"));     qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){         qb_pet.addComponent(Laya.SphereCollider);     });   设置射线:    Laya.timer.frameLoop(1, null, checkHit);   ...

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