大约有 1,291 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
3D场景中加入lh精灵,再删除后有时会出问题。 现在项目思路是先读取ls场景,然后在读取lh精灵,因为这个精灵(麻将牌)在场景中会出现多个,所以会多次调用Sprite3D.instantiate()方法复制多份精灵加入到这个3d场景。 问...
来源: Laya_社区 发布时间: 20190104
...ype = 3; Laya.loader.create([ "../../res/threeDimen/staticModel/grid/plane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitch...
来源: Laya_示例 发布时间: 20251130
微信小游戏报错 the .lh file root type must be Scene 引擎版本1.7.17beta private screen3DPath: string = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.s...
来源: Laya_社区 发布时间: 20180323
...r hero = sphere.addChild(Laya.Sprite3D.load("./res/Xinzhaoyun/Zhaoyun_skin.lh")); var ani = hero.addComponent(Laya.SkinAnimations); ani.templet = Laya.AnimationTemplet.load("./res/Xinzhaoyun/Zhaoyun_standfight.lsani"); ani.player.play(); var...
来源: Laya_社区 发布时间: 20161205
...源 this.resource = [ "res/maze/img/demo/toolClock/Conventional/glow.lh", "res/maze/img/demo/Conventional/wang06.lh", "res/maze/img/demo/toolClock/Conventional/puzzleA.lh", "res/maze/img/demo/toolClock/Conventional/puzzleB.lh" ]; Laya.loader.create(this.resour...
来源: Laya_社区 发布时间: 20191209
加载.lh文件 运行后黑屏 无法显示 下面代码为所用代码 按理说text文本应该会有啊 直接黑屏 实在不知道是什么问题了 下面的触屏代码为官方案例示例代码 Copy过来的 希望各位给看一下 图片为运行的结果 import GameConfig fro...
来源: Laya_社区 发布时间: 20190531
3D多网格问题 使用.lh文件直接获得整个场景网格后,如何获得其子网格(虽然可以是要用多个lm拼成整个场景,但是如果子网格多的话,有些麻烦) 【已自行解决,使用lh里的name获取】 不过,如果在unity里更改物体name的话,会...
来源: Laya_社区 发布时间: 20170423
微信小游戏,动态加载资源很慢 我把.lh .ls的文件全放在远程服务器上,然后代码里先用 Laya.URL.basePath = "http://cdn.test.com/smallGame/"; var res3D = ["./Prefab/Conventional/NewBuilds.lh", "./LayaScene_111/Conventional/smoke.lh"]; Laya.loader.create(res3D, Laya...
来源: Laya_社区 发布时间: 20190702
微信小游戏只缓存图片和声音 一个3D模型 加载lh 比如里面有大量的lani lm等等文件 那么说用downLoadFile去下载自己管理缓存,可是我怎么弄 自己去解析lh 用downLoadFile加载数据???? 还有就算我用downLoadFile加载了,我下次去加...
来源: Laya_社区 发布时间: 20180409
...is._createSprite3D = 2; Laya.loader.create("res/h5/LayaScene_Effect/Effect.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); Laya.loader.create("res/h5/LayaScene_aixin/aixin.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); onEffectOK() : void{ this._createSprite3D -= 1; if(t...
来源: Laya_社区 发布时间: 20180403