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

大约有 959 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)

381. 分享:Graphics下cmds命令流的使用! [ 63%]

...ey0.png','apes/monkey1.png','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,onLoaded)); } private function onLoaded():void { //获取纹理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Te...

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

382. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 63%]

...ad([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

383. 微信小游戏下Laya.Browser.window.protobuf可以用吗? [ 63%]

...this.proto.lookup("HeartBeatReq");         var body = HeartBeatReq.create({             "time":1         }); 附件 : --> 2019-11-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_...

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

384. 二次开发 异步回调没反应 [ 63%]

...ins.isDev) { success.runWith(1); return; } var VGUtil = Laya.PlatformClass.createClass("com.szdn.game.fkzy.VGUtil"); VGUtil.callWithBack(back, "showVideoAd", type);  function back(code){ LayaManager.showTextTip("广告返回成功:"+code); success.runWith(code); } }  android: public static void ...

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

385. 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 [ 63%]

...a.loader.load("https://piggy.q1.com/res//atlas/images.atlas", Laya.Handler.create(this, this.onLoaded2), null, Laya.Loader.ATLAS); // Laya.loader.load("map/tile_map.png");   2018-05-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

386. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 63%]

...l"; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); this.apeTexture = Laya.loader.getRes...

来源: Laya2.0_文档 发布时间: 20210715

387. 如何能够clone一个node(包括node所有的子节点, 以及所有节点上的compnent,属性) [ 63%]

....load([{url:"prefab/ButtonA.json", type:Laya.Loader.PREFAB}], Laya.Handler.create(this, ()=>{ let prefab = Laya.loader.getRes("prefab/ButtonA.json") as Laya.Prefab; let o:Laya.Button = prefab.create(); o.zOrder = 10000; Laya.stage.addChild(o); })); 但是如果要把状态也clone出来,并没...

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

388. 微信小游戏 wxlocal怎么用 [ 63%]

...load([{ url: 'wxlocal/load.json', type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.loadComplete)); 我就是这么调用的,但是load.json这个文件还是去远程拉了。该怎么解? Laya_Aaron • 2018-03-27 11:23 @seacole:仔细看文字描述,写的很清楚 joshua0526 • 2...

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

389. 微信飞机大战中“开始页面”逻辑功能关于js继承问题 [ 63%]

...加载完成与加载进度回调方法 Laya.loader.load(assetArr,Handler.create(this,onComplete),Handler.create(this,onProgress)) } return GameStart(); })();   2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

390. skin加载url资源不会刷新 [ 63%]

...     Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handler.create(this, function (): void {             var t: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;);             var ape: Sprite = new Sprite();             ape.graphics.drawTexture(...

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