大约有 655 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.sta...
来源: Laya2.0_文档 发布时间: 20210715
ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null 附Demo。 想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...
来源: Laya_社区 发布时间: 20170615
...Array = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya.Loader.JSON }, { url: "images/background.png", type: Laya.Loader.IMAGE }, {...
来源: Laya_社区 发布时间: 20180613
Laya.loader.create 不会反馈失败状态跟描述不符合 var resource:Array<string> = ["scene/Conventional/scene2.ls"] Laya.loader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number...
来源: Laya_社区 发布时间: 20190626
...不同资源路径的龙骨动画时,它的sign值,必须是不同的吗? Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug IDE动画 添加过程出现图片资源丢失 LayaAir IDE 资源窗口那块能否像unity一样加个图片预览...
来源: Laya_社区 发布时间: 20170811
几个加载同一资源只有一个回调 在多个地方同时使用loader load同一资源 为啥只返回最后一次的回调函数? 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ckp0799 赞同...
来源: Laya_社区 发布时间: 20180322
Laya.loader加载BUG 加载图片的时候,源码里这一步会的url为“”的时候,会执行this.onLoaded(null)这一步_ _proto.load=function(url,type,cache,group,ignoreCache,useWorkerLoader){ (cache===void 0)&& (cache=true); (ignoreCache===void 0)...
来源: Laya_社区 发布时间: 20200427
...th (AA.max.js:674) at ResInfo.__proto.event (AA.max.js:453) at LoaderManager.__proto._endLoad (AA.max.js:9492) at Loader.onLoaded (AA.max.js:9469) at EventHandler.__proto.runWith (AA.max.js:674) at Loader.__proto.event (AA.max.js:453) 附件 : --> testA_B.zip 2017-07-25...
来源: Laya_社区 发布时间: 20170725
...``typescript 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"); //使用...
来源: Laya2.0_文档 发布时间: 20210715
...链接 提交 1 个回复 微笑 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER); 在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...
来源: Laya_社区 发布时间: 20180913