大约有 1,363 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1161) Laya2.0_文档(69) Laya3.0_文档(63) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...非常少 可以重现我说的问题 function initLaya() { console.log('Laya.version:' + Laya.version); //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(750, 1334, true); //适配模式 Laya.stage.scaleMode = 'fixedwidth'; Laya.stage.screenMode = Laya.Stage.SCRE...
来源: Laya_社区 发布时间: 20180426
...Env.regClass() class Script { static speak(arg1: any, arg2: any) { console.log(arg1); console.log(arg2); } } 然后打开终端,输入命令LayaAirIDE --project=C:\Users\ASUS\Desktop\LayaProject --script=Script.speak --script-args="say \"hello world\""后,如图2-2所示,可以看到进行了...
来源: Laya3.0_文档 发布时间: 20251010
...=(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>documen...
来源: Laya_社区 发布时间: 20190313
...ck,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 var cre...
来源: Laya_社区 发布时间: 20170718
...信 Sunny_zhao 赞同来自: xcode infoplist里面 ats设置是yes, xcode log Downloaded http://stand.alone.version/index.html@ s=0 l=0 .我不知道这个是什么 ide里面游戏url我设置为空构建的。我尝试升级了ide但是构建出来也提示了网络异常。, 一开始申请...
来源: Laya_社区 发布时间: 20170303
...r.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; export class...
来源: Laya2.0_示例 发布时间: 20251218
...不支持非utf8格式编码的文件。 3. 日志级别 LayaNative底层LOG分为五种: enum class LogType { Debug, Info, Warn, Error, Fatal, }; 每种日志对应的日志级别如下: enum class LogLevel { Debug = 5, Info = 4, Warn = 3, Error = 2, Fatal = 1, Close = 0, }; 在js脚本中,...
来源: Laya3.0_文档 发布时间: 20251010
...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(mArmature)...
来源: Laya_示例 发布时间: 20251218
...t; </head> <body> <script> var ws = new WebSocket("wss://login.huanxi.twbuyu.com:27777"); ws.onopen = function() { alert("connect success~"); ws.send('tom'); alert("send to server msg: tom"); }; ws.onmessage = function(e) { alert("accpet msg: " + e.data); }; ws.onerror = function(e...
来源: Laya_社区 发布时间: 20181018
...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(mArmatur...
来源: Laya_示例 发布时间: 20251218