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

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

321. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 71%]

...script //新建一个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShape(1); //给球添加...

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

322. 3D中如何获取模型的世界旋转角度,不是localRotationEuler,不是四元数,是在世界中x,y,z轴上的旋转角度 [ 71%]

...与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: var a:Sprite3D = new Sprite3D();             a.transform.rotation; 2018-09-08 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 careylwq 相关问题 sprite旋...

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

323. Sprite-屏幕截图 [ 71%]

.../激活启动类 new Sprite_ScreenShot(); package { import laya.d3.core.Sprite3D; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.ui.Image; import laya.display.Sprite; /** * ... *...

来源: Laya2.0_示例 发布时间: 20251209

324. Unity导出的特效,缓存后第一次加载能播放,此后再加载不播放的问题 [ 71%]

...同来自: 我就是这样做的Laya.loader.create(....lh文件),后面Sprite3D.load(....lh)文件再挂在人身上 2017-06-15 0 1 分享 微博 QZONE 微信 leeq3000 赞同来自: 的确有这个问题 2017-11-21 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 这个正确的做法是 ...

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

325. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 71%]

...ot;) as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle") as Laya.Sprite3D; console.log(tiger); var animator:Laya.Animator = tiger.getComponentByIndex(0) as Laya.Animator; animator.play("idle"); var cat:Laya.Spr...

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

326. .lh 文件不能在同一js文件内重复引用吗? [ 71%]

...出了一个lh文件,打算复用。            var shelf0 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf0);            shelf0.transform.translate(new Laya.Vector3(-4,1.2,35));            var shelf3 = Laya.Sprite3D.load("DoorShe...

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

327. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 71%]

...的介绍,使用如下代码加载prefab资源,             Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp)             {                 var layaMonkey2  = scene.addChild(sp);                 layaMonkey2.transform...

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

328. 资源回收的清理不干净的bug [ 71%]

...{         var myscene = new Laya.Scene3D;         Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){             for(var i=0; i<3; i++){                 var ball = myscene.addChild(sp.clone());           ...

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

329. unity导出插件报错 [ 71%]

...Async (laya.d3.js:21944) at Animator.__proto.addClip (laya.d3.js:22458) at Sprite3D.__proto._parseCustomComponent (laya.d3.js:27313) at Function.Utils3D._createNodeByJson (laya.d3.js:15937) at Function.Utils3D._createNodeByJson (laya.d3.js:15945) at Sprite3D.__proto.onAsynLoaded (laya.d3.js:27847) a...

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

330. Unity导出的特效,怎么缓存让第一次加载的时候不卡呢 [ 71%]

...... ], XXX, XXX);   加载: var effect = actor.mView.root.addChild(Laya.Sprite3D.load("Resources/Player/nan_jianshi/Effect/dmc_skycity_attack1/.lh"));                     effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){                         var particle = effect...

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