• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,363 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0051 秒)

511. laya微信小游戏加载外部素材失败 急急急 [ 63%]

...非常少 可以重现我说的问题    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

512. 命令行发布 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...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

513. 2.0版本 ios浏览器旋转,会导致适配出现问题,无法旋转回来 [ 63%]

...=(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

514. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 62%]

...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

515. iOS 打包之后resource文件夹下没有cache文件, [ 62%]

...信 Sunny_zhao 赞同来自: xcode infoplist里面 ats设置是yes, xcode log Downloaded http://stand.alone.version/index.html@ s=0 l=0  .我不知道这个是什么  ide里面游戏url我设置为空构建的。我尝试升级了ide但是构建出来也提示了网络异常。, 一开始申请...

来源: Laya_社区 发布时间: 20170303

516. UI-ProgressBar [ 62%]

...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

517. 其他 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...不支持非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

518. 骨骼动画-藤蔓 [ 62%]

...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

519. native 1.0.2 连不上wss [ 62%]

...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

520. 骨骼动画-橡胶人 [ 62%]

...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