大约有 965 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0066 秒)
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 JS 是没有自动补全提示吗 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个...
来源: Laya_社区 发布时间: 20231107
...//初始化你预先设置的参数 ModeKey.prototype.init = function () { console.log(this.moveKey, this.layer, this.moveMax) this.moveKey.on(Laya.Event.MOUSE_DOWN, this, this.downFun); //记录一开始小圆点的位置,方便鼠标弹起的时候自动返回开始位置 this.moveKey.mode = {x:...
来源: Laya_社区 发布时间: 20171030
...sponse:\n" + xhr.responseText); var data = JSON.parse(xhr.responseText); //console.log(data); if (data.result_status == 1 && data.top_list) { WxRankManage._top_list = data.top_list; //对排行数据进行处理 //wb.EventManager.dispatchCustomEvent(wb.HTTPRE, xhr.responseText); } } }; } var...
来源: Laya_社区 发布时间: 20180807
...把子 • 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_示例 发布时间: 20241001
...e.runNodeScript(node.id, node.getComponent("MyScript").id, "test", "abc"); console.log(ret); 3、自定义一个函数,并执行。例如: //下面是场景进程的代码 //注意:IEditorEnv.regClass是必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的...
来源: Laya3.0_文档 发布时间: 20240918
...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
....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_示例 发布时间: 20241001
....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_示例 发布时间: 20241001