大约有 1,012 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
...把子 • 2018-01-16 12:04 @Monica: window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); // alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); var Test=Laya.PlatformClass.createClass("com.ygames.buyugl.zh.MainActivi...
来源: Laya_社区 发布时间: 20180116
...ogressBar.value = 0; } this.progressBar.value += 0.05; } onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } } new UI_ProgressBar();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; expo...
来源: Laya2.0_示例 发布时间: 20251209
...s,callback,thisObj) { var image = new Image(); image.onload = function() { console.log("图片已经加载"); callback(image,thisObj) }; console.log("图片加载中...") image.src = canvas.toDataURL("image/png"); return image; } </script>2. 在 as 代码中加入如下函数: private static...
来源: Laya_社区 发布时间: 20170718
...r yfqian=(function(){ function yfqian(){ var debug=yfqian.getUrl("debug"); console.log("dubegs:",debug); if(debug=="yfqian"){ new VConsole(); webUrl=testUrl; phpUrl=testUrl_php; }else{ webUrl=adminUrl; phpUrl=adminUrl_php; } window.console.log('webUrl:',webUrl) if(window.document.body.clientWidth>...
来源: Laya_社区 发布时间: 20190313
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 大量sprite如何优化性能 请教下微信小游戏的内存和数据缓存? 1.7.20beta有bug,帧属性面板打不开 laya如何重写console.log 打...
来源: Laya_社区 发布时间: 20241015
....ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mA...
来源: Laya_示例 发布时间: 20251209
....ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(...
来源: Laya_示例 发布时间: 20251209
...bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 // console.log(rankTexture); // var img = wxMgr.getOpenDataCanvas().toDataURL("image/png"); // this.view.image_rank_list.source = img; // var canvas_2d_ctx = canvas.getContext('2d') // canvas_2d_ctx.drawImage(wxMgr.getOpenDataCa...
来源: Laya_社区 发布时间: 20180426
...mg/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]); 为什么不能把Laya.Hander.create后面带的这个参数传到Function里面? 附件 : --> 2018-06-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180621
...setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用; 现在这个是一个很大的问题,...
来源: Laya_社区 发布时间: 20170323