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

大约有 106 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0039 秒)

41. 微信小游戏编译出错 [ 66%]

...aya_Aaron:ascii编码? private var assetArr:Array=[{url: "res/atlas/comp.atlas"}, {url: "res/atlas/wxlocal.atlas"}, {url: "res/atlas/middleMoive.atlas"}, {url: "res/atlas/resoutel.atlas"}, {url: "res/atlas/texiaolanse.atlas"}]; 我直接load 这些...

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

42. 图片放在assets根目录下无法被引用成功,必须放到一个文件夹中 [ 66%]

...定对这个图集做了预加载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueying • 2017-03-21 16:15 好的,...

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

43. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 66%]

...毕,此方法只执行一次 onAwake(): void { var res: any[] = ["atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png", "resources/tree/clip_selectBox.png", "resources/tree/clip_tree_folder.png", "resources/tree/clip_tree_arrow.png"]; La...

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

44. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 66%]

...aya.init(400, 400, Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Te...

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

45. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 66%]

...in{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image ...

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

46. 怎么读取文件夹名称 [ 65%]

...如果过大怎么办 获取对象的名称 兼容问题 在UI编辑器里 comp 文件夹导入图片后 在侧边栏不显示任何文件,但是文件夹里有 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 问题状态 最新...

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

47. 打包图集后,如何根据.json文件获取小图路径 [ 64%]

...的原始图片, 譬如你的下图名为001.png 获取小图路径:“comp/001.png”即可. 2016-07-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sdgaodai 相关问题 2.0一不小心删了bin目录下的某个场景json文件...

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

48. 在微信小游戏中使用BitmapFont会导致报错. [ 64%]

...BitmapFont('Name', timerFont);         Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded));     })); }  function onLoaded(): void {     //实例UI界面     var testUI: TestUI = new TestUI();     Laya.stage.addChild(testUI); } 附件 : --> src.rar 2018-0...

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

49. worker如何使用 [ 64%]

...r.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, () => { alert("onLoaded!"); }), null, Laya.Loader.ATLAS, 1, true, null, false, true);   useWorkerLoader参数设为true后,文件加载不成功? 附件 : --> Demo.zip 2019-01-11...

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

50. 游戏资源加载问题! [ 64%]

...议放到一个load里边进行加载: Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS},{url:"res/atlas/Skill/Skill_1001.json",type:Laya.Loader.ATLAS}], Handler.create(this, onAssetLoaded), null, Loader.ATLAS);   2017-12-27 0 0 分享 微博 QZONE 微信 q1402907210 - 你猜...

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