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

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

831. Texture自动恢复还是存在另外的问题 [ 70%]

...itmap || this._bitmap.destroyed)&& url){             Laya.loader.load(url,Handler.create(this,function(bitmap){                 _$this._bitmap=bitmap;             }),null,"htmlimage",1,false,null,true);         }     }   Laya.loader.load的cache参数...

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

832. 能否恢复Animation.getGraphicBounds在1.6时的用法 [ 70%]

...ookAt的用法 Texture图片能否进行翻转? Laya.URL.basePath与Laya.loader.load用法 请问关于遮罩的用法,在哪块可以找到? 编辑器下HtmlDIVElement属性能否支持style选项设置 请问下layaflash能否支持热更新? Laya.loader.clearTextureRes引起的内存泄...

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

833. protobuffer加载失败 [ 70%]

...资源地址使用中括号 )加载 .proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTe...

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

834. 关于stage的size问题 [ 70%]

...scaleMode = Laya.Stage.SCALE_NOSCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(spr...

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

835. Sprite-遮罩-放大镜 [ 70%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png")...

来源: Laya_示例 发布时间: 20251219

836. 动态加载的图片不响应按钮点击事件 [ 70%]

...URLRequest = new URLRequest(); imgURL.url="res/data/image/522.png"; var imgLoader:Loader = new Loader(); imgLoader.load(imgURL); imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, finished); function finished(evt:Event):void { var img:Bitmap = new Bitmap(evt.target.content.bitmapData); sta...

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

837. exception info:[SyntaxError: JSON Parse error: Expected '}'] at line 22 [ 70%]

...: Error Could not attach to main target 微信小程序里加载json文件 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug spine动画转换失败,加载错误:导出二进制数据出错:writeUint8 error - Out of range261, 有谁知道什...

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

838. 严重问题资源销毁不了 [ 70%]

...了 资源销毁不了 我先加载一个图集,然后执行销毁 Laya.loader.clearRes("res/atlas/mainTown.json"); 但内存并没回收,查看代码也执行了销毁过程,但内存就没没减下来。   还有个问题: 如果只是加载资源,不添加到显示对象上,内存是...

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

839. 微信资源加载问题 [ 70%]

... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...

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

840. [Laya2.3] 天空盒在微信上的显示问题 [ 70%]

...  var completeFunc = (scene)=>{             var sc = Laya.loader.getRes(sceneUrl);             Laya.stage.addChild(sc);          }          Laya.loader.create(sceneUrl,new Laya.Handler(this,completeFunc)); 附件 : --> scene1.zip 2019-10-12 添加评论...

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