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

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

251. 微信上测试加载服务器资源 [ 74%]

...上测试加载服务器资源 URL.basePath = "http://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下...

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

252. 加载不了模型 [ 74%]

...ao Ss.png");         box.meshRender.material = material;       Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete));       function onCreateComplete() {    var mesh = Laya.loader.getRes("cj\cj-default001.lm");   var meshSprite3D = new Laya.MeshSprite...

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

253. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 74%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 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

254. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 74%]

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

255. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 74%]

...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

256. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 74%]

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

257. 资源导出问题 [ 74%]

...不同资源路径的龙骨动画时,它的sign值,必须是不同的吗? Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug IDE动画 添加过程出现图片资源丢失 LayaAir IDE 资源窗口那块能否像unity一样加个图片预览...

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

258. 几个加载同一资源只有一个回调 [ 74%]

几个加载同一资源只有一个回调 在多个地方同时使用loader load同一资源 为啥只返回最后一次的回调函数? 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ckp0799 赞同...

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

259. Laya.loader加载BUG [ 74%]

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

260. 分包项目, 加载js时报错 [ 74%]

...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