大约有 1,604 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0129 秒)
...sn:* = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big:BigRank = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: (图1)
来源: Laya2.0_文档 发布时间: 20210715
... private switchAnimation(name:string) { console.log('switchAnimation: ' + this.meshes.length); let anitemplet = this.anies[name]; for (let mesh of this.meshes) { let ani = mesh.getComponen...
来源: Laya_社区 发布时间: 20170608
...ew Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize + "px" + " " +this.font ; var xAction = (n) => { return -n * this.fontSize -this.horizontalSpace; }; var yActio...
来源: Laya_社区 发布时间: 20191103
...方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯2D,或2D/3D混合这...
来源: Laya3.0_文档 发布时间: 20251010
...com.battlecry.idle_m.data_proto.WalletModel;" var a=staticHelp.exec(line); console.log(a);的确会卡死。应该是你们的这个tsSort里面的正则有问题吧。 多谢 附件 : --> laya_compile_bug.zip 2018-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20181115
...辑,或者死循环”。 9、关闭该提示后,微信开发者工具console输出找不到webgl的log信息。 请问以上,是Laya IDE的问题?还是微信开发者工具的问题?应当如何解决? 操作系统:win10 x64 laya IDE版本:1.7.20.1beta laya 引擎:1.7.20.1b...
来源: Laya_社区 发布时间: 20180829
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! 在List渲染的时候,在滚动一个list的时候,如何实现...
来源: Laya_社区 发布时间: 20180627
....skin = this.powerProgressWhiteSprite; this.isIncPower = true; return; } } console.log('===this.currentPower: ', this.currentPower); this.NodePowerProgressBar.graphics.clear(); //参数是否为true,都一样 this.NodePowerProgressBar.graphics.drawPie(100, 100, 100, 0, this.currentPower, ''); } 必...
来源: Laya_社区 发布时间: 20190909
...数据 list.dataSource = data; } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = laya.ui.Box; import Image = laya.ui.Image; import Label = Laya.Label; export class ListDataSourceItem extends Box { public static WID: number = 200; public stati...
来源: Laya_社区 发布时间: 20180410
...aya.init(1280,720); //无问题 Laya.init(1280,720,Laya.WebGL);//有问题 console.log(Laya.version); var testSpriteRotation:PanelRotationTest = new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new...
来源: Laya_社区 发布时间: 20170814