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

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

401. 请问在加速器中有没有可以设置Loader下载资源超时时间的接口? [ 73%]

请问在加速器中有没有可以设置Loader下载资源超时时间的接口? 项目在加速器(原生runtime)中运行偶尔会遇到所有加载队列停止卡住的情况,调用Layar.Load的加载对象所以的错误回调都没触发,就一直卡住,初步怀疑是不是有...

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

402. vivo上,Laya.loader.create加载数组,进度卡在86%,没有回调也没有报错 [ 73%]

vivo上,Laya.loader.create加载数组,进度卡在86%,没有回调也没有报错 如题,在微信上是ok的,不过在vivo上Laya.loader.create一直没有complete回调,也没有报错,有人遇到过么? 快应用平台版本号:1060 2020-04-09 添加评论 已悬赏10元 --> ...

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

403. UI-Input [ 73%]

...es/ui/input (2).png", "res/ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...

来源: Laya2.0_示例 发布时间: 20240930

404. Laya.loader.create 进度回调函数执行两次 [ 73%]

Laya.loader.create 进度回调函数执行两次 Laya.loader.create(["Main/SMain.ls","Role/Role.lh"],Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%");...

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

405. 鼠标交互-Hold [ 73%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this...

来源: Laya2.0_示例 发布时间: 20240930

406. loading界面实现图片预加载后,创建Sprite执行loadImage出错 [ 73%]

...rite执行loadImage出错 1、没有使用IDE; 2、仿照sample里面的 Loader_ProgressAndErrorHandle.js 构建了一个 Loading界面。 3、所有图片均成功载入 4、切换界面时,进入游戏界面,构造Sprite出错。       切换界面使用了三种方式:           ...

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

407. 微信小游戏 wxlocal怎么用 [ 73%]

...8-03-27 10:33 浏览: 1439 关注: 2 人 seacole • 2018-03-27 11:22 Laya.loader.load([{ url: 'wxlocal/load.json', type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.loadComplete)); 我就是这么调用的,但是load.json这个文件还是去远程拉了。该怎么解? Laya_Aaron • ...

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

408. UI-ProgressBar [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["../../res/ui/progressBar.png", "../../res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("../../res/ui/progressBar.png"); progres...

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

409. 3D:Mesh如何预加载? [ 73%]

..._female_01-obj001.lm", "model/player/003/char_car_01-obj001.lm" 通过Laya.loader.load加载完后不能正常使用,没有Mesh的类型可以指定。 是要用Laya.loader.create才行么? Laya.loader.create(urls, Handler.create(this, this.onAssetLoaded), Handler.create(this, this.onLoading, nu...

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

410. UI-ComboBox [ 72%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { let cb = this.createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } createComboBox(...

来源: Laya2.0_示例 发布时间: 20240930