大约有 1,020 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
...k.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { Laya.Resource.destroyUnusedResources(); }); } 当触发了释放资源的函数,会报错如下: laya.webgl.js:5713 Uncaught TypeError: Cannot read prop...
来源: Laya_社区 发布时间: 20181016
... this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```
来源: Laya2.0_文档 发布时间: 20210715
...vent.CLICK, this, this.click); Laya.stage.addChild(bt); function click() { console.log("??????????"); } 点击之后没有翻译,按钮也没有点击的动画 cuixueying • 2017-04-24 11:07 我们测试是OK的,你的button的skin有提前预加载吗,可以提供一个重现问题...
来源: Laya_社区 发布时间: 20170421
...就是当前被点击的对象 function onClickItem(item: GObject): void { console.log("点击了对象:" + item.title); //获得这个对象在列表中的索引的方式 let childIndex = list.getChildIndex(item); } 从上面的代码可以看出,事件回调里都可以方便的获得当前点...
来源: Laya3.0_文档 发布时间: 20251128
...//把输入的角度值,转成弧度给_radian存起来。 } onStart() { console.log(this._radian); } } 2.4 是否为私有属性(影响面板可见) 除了前文中提到的hidden这个属性标识参数会影响属性在面板上是否可见之外。private参数也会影响属性在面板...
来源: Laya3.0_文档 发布时间: 20251010
... QZONE 微信 177*****621 赞同来自: onStart() { console.log("Game start"); Laya.Config.isAlpha = true; Laya.stage.bgColor ="none"; this.Show(); } private iframe: any = Laya.Browser.document.cr...
来源: Laya_社区 发布时间: 20240304
...符串变成数字? android studio运行laya项目报错 laya如何重写console.log 打印错误跟信息到自己写的日志面板上 android 新版打包要求输入js或者json,而不是html路径 我应该如何处理 LayaNative 预览在Android底下报错 ConchShader is not defined 打...
来源: Laya_社区 发布时间: 20180226
...ddChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null,false), Laya.Scene );07-11 16:53:45.923 30921-30972/? E/jswrapper: [ERROR] Failed to invoke _runtime_require, location: /home/game/jenkins/workspace/SafeBuild/XGame/instant-game-c...
来源: Laya_社区 发布时间: 20190711
...vate mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loader.load("skeleton/Dragon/Dragon.sk").then((templet: Laya.Templet) => { //创建模式为1,可以启用换装 this.mArmature = templet.buildArmature(0);...
来源: Laya3.0_文档 发布时间: 20251010
... var request = new XMLHttpRequest(); console.log('url', url) request.open("GET", url, true); request.responseType = "arraybuffer"; request.onload = function () { ...
来源: Laya_社区 发布时间: 20200107