大约有 2,782 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0064 秒)
Laya_社区(2462) Laya2.0_文档(107) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...8-03-27 10:33 浏览: 1439 关注: 2 人 seacole • 2018-03-27 11:22 Laya.loader.load([{ url: 'wxlocal/load.json', type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.loadComplete)); 我就是这么调用的,但是load.json这个文件还是去远程拉了。该怎么解? Laya_Aaron • ...
来源: Laya_社区 发布时间: 20180327
...ya.core.js:726) at ResInfo.__proto.event (laya.core.js:494) at LoaderManager.__proto._endLoad (laya.core.js:13347) __proto._initBufferDatas @ laya.d3.js:26634 (anonymous) @ laya.d3.js:27190 __proto._parseCustomProps @ laya.d3.js:40855 Utils3D._createNodeByJson @ laya.d3.js:17945 Utils3D....
来源: Laya_社区 发布时间: 20180731
...,可在GameUI.ts 41行下断点调试进入查看。 var actor = Laya.Loader.getRes("res/LayaScene_Actor/Conventional/XiaoHongMao.lh") as Laya.Sprite3D; var weapon = Laya.Loader.getRes("res/LayaScene_Item/Conventional/Wchangzhang01.lh") as Laya.Sprite3D; var animCtl = actor.getComponent(Laya.An...
来源: Laya_社区 发布时间: 20191011
...ager里面playsound方法 // if (!Browser.onMiniGame) // { // tSound= Laya.loader.getRes(url); // } tSound= Laya.loader.getRes(url); 改成这样 2018-05-10 0 0 分享 微博 QZONE 微信 赞同来自: 图在这里 2018-05-10 0 0 分享 微博 QZONE 微信 赞同来自: 没人知道? 2018-...
来源: Laya_社区 发布时间: 20180510
...建都根据官网,text控件也能显示出来了,现在发现是Laya.loader.getRes()为undefined导致,可是资源都预加载了的; 重要是,layaide能跑,为啥单独打开和fb里都不能跑呢?layaide有什么特殊配置吗? 怎么处理?谢谢; 代码如下: 附件 ...
来源: Laya_社区 发布时间: 20171222
... //开启统计信息 Laya.Stat.show(); //预加载角色动画资源 Laya.loader.create("monkey/monkey.ls",Laya.Handler.create(this,this.onSceneOK)); } onSceneOK() { //添加3D场景 var scene = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var ca...
来源: Laya2.0_文档 发布时间: 20210714
...lse); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMon...
来源: Laya_示例 发布时间: 20251219
...bed资源不支持,需要使用AssetManager来管理资源,或者使用Loader, URLLoader等自己实现异步加载 Starling内置了一个资源管理类AssetManager,建议使用AssetManager的enqueue来无缝调入各种游戏需要的资源。如果需要自己实现自己的Loader或者URL...
来源: Laya_社区 发布时间: 20151208
...的URL,因为这个URL没有后缀,所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前的资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D 这样就原图片地址是个Texture2D,生...
来源: Laya_社区 发布时间: 20181221
...自: //主域if(Laya.Browser.onMiniGame){//加载一个json和图集Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口...
来源: Laya_社区 发布时间: 20190419