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

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

631. Bitmap引用计数的问题 [ 47%]

...是实际上输出的是1。不知道是不是我的理解有问题还是LoaderManager.load在加载第二张图片直接完成导致useNum++没有执行的问题 2017-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 ...

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

632. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 46%]

...性后,icon就没有显示了,代码如下: 在入口文件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();   ...

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

633. 请问下为啥我的LayaNative在运行的时候,一直显示Layaair的动画在0%的进度无法跳过呢 [ 45%]

...ascript" src="zlib.min.js"></script> <script src='Main.max.js' loader='laya'></script> </body> </html> 然后我把MainActivity中的initEngine方法中的设置入口页面方法改成了mPlugin.game_plugin_set_option("gameUrl", "http://stand.alone.version/index_nat...

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

634. LayaAir下如何分包? [ 45%]

...4、开始调用你分包后的js文件,参考上图1所示,使用laya.loader.load对js进行加载,加载完成后,如2所示,使用__JS__('window.eval(data)');翻译成h5后,将json的data数据在window下进行加载。并进行调用。 Desktop2.rar 2016-08-11 1 0 分享 微博 QZON...

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

635. 为什么会出现报错 ani not found:ufo1_down [ 44%]

...添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置...

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

636. 引擎 TiledMap 居然不支持图块翻转 [ 44%]

...450;             this._gridHeight = 450;             this._jsonLoader = null;             this._loader = null;             this._tileSetArray = [];             this._currTileSet = null;             this._completeHandler = null;             this._mapRect = ne...

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

637. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 44%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实...

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

638. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 43%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():...

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

639. 为什么会出现报错 ani not found:ufo1_down [ 42%]

...添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置...

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

640. 多线程Worker · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():v...

来源: Laya3.0_文档 发布时间: 20251010