大约有 1,363 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0066 秒)
Laya_社区(1161) Laya2.0_文档(69) Laya3.0_文档(63) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...; 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.scale(0....
来源: Laya2.0_示例 发布时间: 20251219
...js 调到 java 那边的方法 是在主线程吗 laya如何重写console.log 打印错误跟信息到自己写的日志面板上 如何确定自己是在Native环境中? worker.js的如何正确使用?所有资源都加载2遍,第一遍是在work.js所在的目录下,第二遍正常 TimeLin...
来源: Laya_社区 发布时间: 20170401
...(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 代码中printProgress会打印加载进度日志,效果如下所示: (图4-2) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025...
来源: Laya3.0_文档 发布时间: 20251010
...reate(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
...reate(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var checkBox:laya.ui.CheckBox= new laya.ui.CheckBox("resource/ui/check.png", "这个是一个CheckBox组件。");//创建一个 CheckBox 类的类的实例对象 checkBox ,传入它的皮肤skin...
来源: Laya3.0_api 发布时间: 20231115
...s 09-10 18:47:40.835 26418-26418/com.layabox.game E/GED: Failed to get GED Log Buf, err(0) 09-10 18:47:40.932 26418-26418/com.layabox.game E/MPlugin: Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport 09-10 18:47:41.028 26418-26418/com.layabox.game E/LayaGameEngine: game_plugin_in...
来源: Laya_社区 发布时间: 20190910
...is._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.cullingMask = 0...
来源: Laya_社区 发布时间: 20200110
...ld(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
...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 = new Lay...
来源: Laya3.0_文档 发布时间: 20251010
... case "left": console.log(this.text + " left"); if (isFF) { alignmentText = '<text text-anchor="start" dominant-baseline="middle" '; } else { ...
来源: Laya_社区 发布时间: 20180824