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

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

161. 怎么直接导出 unity 3d 资源包里的资源,而不是自己放到场景里在导出 [ 51%]

...un 赞同来自: 大概思路就是获取总的json数据   JSONObject jsChild = DataManager.getSceneNode().GetField("child"); 然后获取下面所有jsChild,如果类型是Sprite3D 的,那就把数据写成自定义的,这里要注意一下,引用的图片 2018-03-24 0 0 分享 微博 QZ...

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

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

...entsData (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,...

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

163. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 50%]

...           apesCtn=new Sprite()             Laya.stage.addChild(apesCtn);             for (var i:int = 0; i < 4; i++ )             {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }         } ...

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

164. hitTestPrior点击穿透 [ 50%]

...FF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#FF0000"); spchild.size(200,200); spchild.on(Event.CLICK,this,onClickSpChild); sp.addChild(spchild); } private function onClickSpChild(e:Event...

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

165. 关于Dialog的closeHandler问题 [ 50%]

...的话 无法触发。 查看源码发现 true的话 会直接调用 removeChildren()方法 而closeHandler是在_doClose中调用, 请问我是否可以修改源码,完成我想要的效果,即在open方法中添加调用closeHandler再removeChildren,或者说还有其他的什么可以监...

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

166. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } thi...

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

167. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 50%]

...系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } thi...

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

168. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 49%]

...awRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Laya.Sprite(); bgSprite.mask = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { Laya.Reso...

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

169. 资源导出出错,怎么解 [ 49%]

...entsData (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,...

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

170. 自定义shader-地形shader [ 49%]

...reenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/terrain/terrain.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.trans...

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