大约有 1,779 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
...方式处理输入。例如: 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
...t.ERROR, this, this.printError); templet.loadAni(url); } printError(e) { console.error(e); } } //激活启动类 new Main(); 附件 : --> TEST2.zip 2022-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 第...
来源: Laya_社区 发布时间: 20220530
...e; this._btnPlaySound.visible = false; console.log(this.soundMan.resume); if (this.playBoo) { this.soundMan.play(); this.playBoo = false; }else { this.sound...
来源: Laya_社区 发布时间: 20190919
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! 在List渲染的时候,在滚动一个list的时候,如何实现...
来源: Laya_社区 发布时间: 20180627
...数据 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
....Event.MOUSE_DOWN, this, function (e) { e.stopPropagation();//阻止冒泡 console.log('@_@' + e.stageX, e.stageY); }); 另外,能分享一下,你的导弹是怎么做的吗?谢谢 2017-09-19 0 1 分享 微博 QZONE 微信 bingqimao 赞同来自: 1. 监听MouseDown事件 2. 当MouseDown的时...
来源: Laya_社区 发布时间: 20170902
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 小游戏项目 加载有中文的json文件 报错 如何获取图片每个像素点的RGB? 打包出来后的APP打开加载速度过慢,有黑屏,如...
来源: Laya_社区 发布时间: 20180119
...); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,c...
来源: Laya_社区 发布时间: 20180720
...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
...der.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (im...
来源: Laya_社区 发布时间: 20191122