大约有 4,101 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0088 秒)
Laya_社区(3322) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...距离容器的区域也会触发点击事件 function TransitionImg() { this.flag = false; //判断条件 this.img1 = "../laya/assets/comp/haoyoubang-liang.png"; //地址 this.img2 = "../laya/assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height...
来源: Laya_社区 发布时间: 20180502
...../../"; Laya.loader.load("res/particles/GravityMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height...
来源: Laya_示例 发布时间: 20251218
..._CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.drawSomething(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176...
来源: Laya_示例 发布时间: 20251218
...index: number, playstate: Laya.AnimatorState | Laya.AnimatorState2D) { ... this.model = animator.owner as Laya.Sprite3D;//得到Cube节点 } ... /** * 动画状态退出时执行。 */ onStateExit(): void { console.log("动画退出了"); //平移操作 let position = new Vector3(1, 1, 1); this.mode...
来源: Laya3.0_文档 发布时间: 20251010
Dialog 设置this.mouseEnabled = true;后。再次点击Dialog自动退出 Dialog 里做个按钮电脑按钮设置this.mouseEnabled = true; 然后再次点击Dialog里的元素。Dialog自动退出 2019-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...
来源: Laya_社区 发布时间: 20190130
...it: ISubmit; if (src._targets) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并...
来源: Laya_社区 发布时间: 20210527
...0,正确的应该是55吧= =,但是得到的确是0。 代码如下: this.k = new Laya.Clip("nbdz/gameover/Clip_win.png",11, 1); this.singleNumberW = this.k.width; this.k.index = 2; console.log(this.singleNumberW+"======"+this.k.width); this.addChild(this.k); 是不是因为图片太大,c...
来源: Laya_社区 发布时间: 20170804
...c 播放 会出现延迟效果 Laya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => { this.store.isDemo = true; Laya.Scene.open("scene/Home.scene") }), ne...
来源: Laya_社区 发布时间: 20201102
...等于0 var w: number = 642; var h: number = 12; var g: Laya.Graphics = this._mask.graphics; g.clear(); if (w == 0 || h == 0) return; var points: any[] = []; points.push(0, h); points.push(0, 0); points.push(this._index, 0); points.push(this._index, h); // points.push(0, h); g.drawPoly(0, 0, po...
来源: Laya_社区 发布时间: 20221117
layaair 有没有这个方法this.getObjectsUnderPoint() layaair 有没有这个方法this.getObjectsUnderPoint(),你们都用4叉树替代这个方法? 2016-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20161123