大约有 481 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
Laya_社区(398) Laya2.0_文档(31) Laya_示例(20) Laya2.0_api(12) Laya3.0_文档(8) laya_api(5) Laya2.0_示例(4) Laya3.0_api(3)
...00631用户 赞同来自: //加载IDE指定的场景 Laya.loader.load([{url:"minastc.config.json",type:Laya.Loader.JSON}],new Laya.Handler(this,function(){ this.astcconfig = Laya.loader.getRes("minastc.config.json"); for(var key in this.astcconfig...
来源: Laya_社区 发布时间: 20221013
...传出问题的附件demo 关键代码 LayaUISample的 function beginLoad(){ ConfigEventDispatcher.getInstance().on(ConfigEventDispatcher.CFG_PARSE_COM, this, parseCfgCom); // 解析游戏配置表数据 ConfigMgr.dataInfoComplete(); } ConfigMgr.dataInfoComplete(); 里面有许多...
来源: Laya_社区 发布时间: 20180205
...; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.na...
来源: Laya_社区 发布时间: 20170303
...这行呢? 示例中的ts代码,访问资源路径是: Laya.Scene.load("../../res/threeDimen/scene/terrain/terrain.ls") 我把所有的 ../../res 改成了 res 然后启动项目,报错如下: Error: BaseMaterial: unknown shader name. at CustomTerrainMaterial.__proto.setShaderN...
来源: Laya_社区 发布时间: 20180403
...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...
来源: Laya_社区 发布时间: 20210111
... new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni(mAniPath); } public function destroy():void { mArmature.stop();//停止龙骨动画播放 removeEvent();//移除事件 mArmature.removeSelf();//从显示列表移除龙骨动画本身 mArmature.removeChildren();//从...
来源: Laya_社区 发布时间: 20170406
...代码new Laya.View(),然后代码添加list image什么的就可以.... load图集什么的都能加载的 aqualee • 2019-03-06 12:08 子域里面不能用图集,用不打包 ,main.ts 里面 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded...
来源: Laya_社区 发布时间: 20190305
...复问题请先登录 发起人 cuixueying 相关问题 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 关于近期iOS提交,因违反苹果3.1.1导致APP上架被拒的说明 分享:适配LayaAir版本...
来源: Laya_社区 发布时间: 20160226
...755 好了,解决了。 加载.lm模型要用Laya.MeshSprite3D(Laya.Mesh.load(path)); 动画目前看起来还是正常的。 2017-05-22 1 1 分享 微博 QZONE 微信 cuixueying 赞同来自: 我们看下,晚些回复! 2017-05-18 0 0 分享 微博 QZONE 微信 ebaww 赞同来自: 可以在max...
来源: Laya_社区 发布时间: 20170518
... MsgMgr.instance.init(); Laya.timer.once(1000,this,function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); ...
来源: Laya_社区 发布时间: 20180830