大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0105 秒)
...通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护...
来源: Laya_社区 发布时间: 20180910
...Update(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if(this.isTwoTouch){ return; ...
来源: Laya_社区 发布时间: 20190605
... class is automatically generated by LayaAirIDE, please do not make any modifications. */ class GameConfig { static init() { //注册Script或者Runtime引用 let reg = Laya.ClassUtils.regClass; reg("script/GameMain.js",GameMain); ...
来源: Laya_社区 发布时间: 20201110
... 如果着急的,可以先手动改一下game.js 修改后如下: if ((typeof swan !== 'undefined') && (typeof swanGlobal !== 'undefined')) { require("swan-game-adapter.js"); require("libs/laya.bdmini.js"); } else if (typeof wx !== 'undefined') { require("weapp-adapter.js"); require("...
来源: Laya_社区 发布时间: 20181215
...nce代表创建的弹窗实例 instance.close = function(type = null) { if (!type) return // 这儿加一层限制,所有未知原因的关闭弹窗都不生效 this.closeType = type; Laya.Dialog.manager.close(this); } 2020-07-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20170316
...数 function onAssetsLoaded(err, root){ if (err) throw err; // Obtain a message type var AwesomeMessage = root.lookup("awesomepackage.AwesomeMessage"); // Create a new messag...
来源: Laya_社区 发布时间: 20170216
...pineAni会报错,导致ERROR事件也抛不出去。 private loop() { if (this.assetManager.isLoadingComplete()) { this.parseSpineAni(); return; } if (this.assetManager.hasErrors()) { this.event(Event.ERROR, "load failed:" + this.assetManager.getErrors()); return; } Laya.timer.frameOnce(1, this...
来源: Laya_社区 发布时间: 20220122
...); } } private function OnShow():void { // TODO Auto Generated method stub if(pop==null){ pop = new TestDialogUI(); pop.btn_close.clickHandler = new Handler(this,function(){pop.parent.removeChild(pop);}); } this.addChild(pop); } private function StartMove(len:int):void { trace("[TestView.StartMove]"...
来源: Laya_社区 发布时间: 20171129
...榜的代码://移除排行榜 _proto.closeCloudStorage = function () { if (LayaSample.refract && Laya.stage.contains(LayaSample.refract)) LayaSample.refract.removeSelf();//折射层移除舞台 if (Laya.stage.contains(LayaSample.spriteLeaderboard)) {//从舞台移除 LayaSample.textureLea...
来源: Laya_社区 发布时间: 20180906
...不起作用,就找到laya.core.js 将 static setBlendFunc 方法中的 if 语句删掉 但2.5.0beta应该是起作用的,如果没有切换过类库,建议用新类库试试 2020-01-19 1 2 分享 微博 QZONE 微信 kylin 赞同来自: 试一下2.5.0beta引擎? 2020-01-15 0 1 分享 微...
来源: Laya_社区 发布时间: 20200115