大约有 1,559 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1094) Laya3.0_api(151) Laya2.0_api(106) laya_api(97) Laya2.0_文档(64) Laya3.0_文档(29) Laya2.0_示例(9) Laya_示例(9)
...内容相关的链接 提交 2 个回复 138*****161 赞同来自: 目前laya不支持2d对象clone功能 2019-06-09 0 0 分享 微博 QZONE 微信 nevercai 赞同来自: 138*****161 这就是prefab的功能了。Laya.loader.load([{url:"prefab/ButtonA.json", type:Laya.Loader.PREFAB}], Laya.Handler.c...
来源: Laya_社区 发布时间: 20190210
...小图生成图集后,放到img/assets目录下 然后这样使用: Laya.loader.load([{ url : 'http://localhost:3000/shoot/v2/img/assets/assets.json', type : Loader.ALTAS }], Handler.create(this, function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然...
来源: Laya_社区 发布时间: 20170223
...下面的语句加载资源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存...
来源: Laya_社区 发布时间: 20171103
...oadList": [背景图]。 这里面并没有骨骼动画.sk和.png 当Laya.Scene.load succcess时,发现只加载了 “背景图” 如果又设置了:Laya.URL.basePath = 'https://xxxxx' 这就有点尴尬了,但或许我有没用对的地方。。。 另外:SceneLoader为...
来源: Laya_社区 发布时间: 20181102
微信小游戏Laya.MiniAdpter.AutoCacheDownFile = true后第二次运行报错 1.该工程是用了分包处理,wxgame_pack只包含代码,所以用Laya.URL.basePath设置了局域网的地址,需要修改成自己的 2.第一次在微信工具上可以运行,第二次运行就报错了,...
来源: Laya_社区 发布时间: 20200218
...事 var lobbyRes:Array<any> = [ {url: "Lobby/Sound/BG309.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170925
...s No Frames BaseCameraProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class BaseCameraInheritanceBaseCamera Sprite3D Node EventDispatcher ObjectSubclasses Camera BaseCamera 类用于创建摄像机的父类。 Public Properties Hide Inherited Public Properties Show Inher...
来源: Laya2.0_api 发布时间: 20190513
玩一玩打包后安卓手机不能加载到远程资源 Laya.loader.getRes方法获取不到已经加载的资源 2018-06-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 你得说明...
来源: Laya_社区 发布时间: 20180611
HIERARCHY_LOADED函数不回调 this.sceneP = Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3...
来源: Laya_社区 发布时间: 20180327
...c preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui...
来源: Laya_社区 发布时间: 20180609