大约有 976 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0066 秒)
Laya_社区(508) Laya2.0_示例(94) Laya_示例(89) Laya2.0_文档(88) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(22)
...初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口,请参考: https://ldc2.layabox.com/...
来源: Laya_社区 发布时间: 20190307
...aya_Aaron 赞同来自: 按格子区域来选择触发哪个事件,点击stage 然后看坐标对应哪个格子,然后再进行操作 2018-07-23 0 3 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 正常点地图可能是没效果的,加在容器中,stage中比较方便,你的项目...
来源: Laya_社区 发布时间: 20180722
...; sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 看清楚 文档的用法。。。 18688961270 • 2017-04-18 15:25 我重新整理的代码和文件,按你的指示去做还是行不通的! 18688961270 • 2017-04-18 16:41 已经...
来源: Laya_社区 发布时间: 20170417
...点击屏幕中的空白处来移动模型如何实现呢?直接将Laya.stage.mouseX传递给模型的position测试不对哦,有没有什么方法可以将屏幕坐标转换为模型的坐标呢?其实最终是为了实现拖动效果。 2017-09-04 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20170904
...8, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- import Shader = laya.webgl.shader.Shader; export class coolDownShader extends Shader { /** * 当前着色器的...
来源: Laya_社区 发布时间: 20170606
....x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠...
来源: Laya3.0_文档 发布时间: 20251010
...rite:Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); // console.log("再次往开放域发请求"); ...
来源: Laya_社区 发布时间: 20180529
...list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 设置List的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有...
来源: Laya3.0_文档 发布时间: 20251010
...rite = new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThroug...
来源: Laya_社区 发布时间: 20161109
...改变时触发 progressBar.changeHandler=new Handler(this,onChange); Laya.stage.addChild(progressBar); } private function onChange(value:Number):void { trace("进度: "+Math.floor(value*100)+"%"); } //游戏资源加载进度函数 private function onProgress(pro:Number):void { trace("加载了总...
来源: Laya_社区 发布时间: 20160509