大约有 1,013 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0072 秒)
...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature = this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; this.mArmature....
来源: Laya_示例 发布时间: 20251219
...有解决方案? 2.在界面中使用Laya.timer.frameLoop(1, function(){console.log(conch.config.getUsedMem())}),手机会出现闪退,并报错local reference table overflow (max=512) 3.在项目运行中闪退,报错为: 03-22 13:52:03.749 15130-15218/com.xmvigor.shyxcs A/art: art/runtime/...
来源: Laya_社区 发布时间: 20180322
...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature = this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; this.mArmature....
来源: Laya2.0_示例 发布时间: 20251219
... laya中js 调到 java 那边的方法 是在主线程吗 laya如何重写console.log 打印错误跟信息到自己写的日志面板上 如何确定自己是在Native环境中? worker.js的如何正确使用?所有资源都加载2遍,第一遍是在work.js所在的目录下,第二遍正常...
来源: Laya_社区 发布时间: 20170401
...andler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var button = new laya.ui.Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象 button ,传入它的皮肤skin和标签label。 button.x =100;//设置 button ...
来源: Laya3.0_api 发布时间: 20231115
...andler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var checkBox:laya.ui.CheckBox= new laya.ui.CheckBox("resource/ui/check.png", "这个是一个CheckBox组件。");//创建一个 CheckBox 类的类的实例对象 checkBox ,传入它的皮...
来源: Laya3.0_api 发布时间: 20231115
...yer = this._layerMap[layerStr]; if(layer === null || layer === undefined){ console.log(layerNodeName + ' don not match the rule of layer node.'); return; } if(bRemove){ this.removeLayer(target,layer); } else{ this.addLayer(target,layer); } } } } public static removeAllLayers(target) { target.culling...
来源: Laya_社区 发布时间: 20200110
...r.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-16 18:53:02 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251016
... { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } class Item extends Laya.Box { static WID: number = 373; static HEI: number = 85; private img: Laya.Image; constructor() { super(); this.size(Item.WID, Item.HEI); this.img =...
来源: Laya3.0_文档 发布时间: 20251010
.../span>"; ele.on(Laya.Event.LINK, this, (event: Laya.Event) => { console.log(event); }); Laya.stage.addChild(ele); zyy • 2021-11-09 13:51 @Laya_Fred: 这段代码 很简单 只是点击 输出 event 如果 把Laya.stage.y 向下调整 就会导致它点击区域错误 zyy • 2021-11-09 ...
来源: Laya_社区 发布时间: 20211105