大约有 258 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)
... } return getext.call(this,vale) } GameConfig.startScene && Laya.Scene.open(GameConfig.startScene); })); 例子就是 官方的demo 只是修改了入口 其他没有变 fixImg3...
来源: Laya_社区 发布时间: 20221013
...vity"); // 这个名字要与下面声明的Java的类名匹配. Test.call("showError"); } /////////////////////////////////////java////////////////////////////////////// public static void showError(){ Log.e("showerror","show"); new AlertDialog.Builder(MainActivit...
来源: Laya_社区 发布时间: 20180116
...ags(flags); this._nativeColliderObject=btColObj; _super.prototype._onAdded.call(this); }报错的意思是 physics3D是undefine,是需要在哪儿初始化一下物理吗 2019-03-21 0 0 分享 微博 QZONE 微信 happyfire 赞同来自: 自己研究中,好像是物理没有开启导致的, co...
来源: Laya_社区 发布时间: 20190321
...tions(), and running remote scripts in order to change app behavior and/or call SPI, based on the contents of the downloaded script. Even if the remote resource is not intentionally malicious, it could easily be hijacked via a Man In The Middle (MiTM) attack, which can pose a serious security vulner...
来源: Laya_社区 发布时间: 20191104
...r (var i = 0; i < loadData.length; i++) { if (Object.prototype.toString.call(loadData[i]) === "[object Object]") { loadData[i].priority = this.priority; } } Laya.loader.load(loadData, Laya.Handler.create(this, this.onComplete, [resKey, otherLoadData, complete, progress, loadData]), progress); } p...
来源: Laya_社区 发布时间: 20191107
... Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; v...
来源: Laya_社区 发布时间: 20180731
...<script type="text/javascript"> function convertCanvasToImage(canvas,callback,thisObj) { var image = new Image(); image.onload = function() { console.log("图片已经加载"); callback(image,thisObj) }; console.log("图片加载中...") image.src = canvas.toDataURL("image/png"); return image;...
来源: Laya_社区 发布时间: 20170718
...出控制台出现以下报错,编译不了代码 出错了:FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory <--- Last few GCs ---> [8912:005A00C8] 319470 ms: Mark-sweep 982.8 (1183.0) -> 971.7 (1172.4) MB, 632.9 / 0.0 ms allocation failure GC in old ...
来源: Laya_社区 发布时间: 20191225
...如下: (function (_super){ function MarketItem() { MarketItem.__super.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} // 背景 var bg_image =...
来源: Laya_社区 发布时间: 20170422
...67/407 (no filename):8 ### App Framework ### [error] __qg._onErrorOccurred called! loaction: (see stack) message: Uncaught TypeError: MiniFileMgr.fs.listDir is not a function stack: [0]onMkdirCallBack@/data/user/0/com.vivo.hybrid/app_resource/com.fx.jjjt.vivominigame/libs/laya.vvmini.js:1073 [1]runW...
来源: Laya_社区 发布时间: 20200826