大约有 1,040 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
Laya_社区(611) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
...tion createTexts() { var t1 = createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2 = createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3 = createText(); t3.overflow = Text.HIDDEN; t3.pos(10, 210); } function createText() { var txt = new Text(); txt.text = "Layabox是HTML5引...
来源: Laya2.0_文档 发布时间: 20210714
... if ((i+1)%2 == 0) { but.pos(83, 370 + (i + 1) / 2 * but.height + (i + 1) / 2 * 8); }else { but.pos(245,370 + (i + 1) / 2 * but.height + (i + 1) / 2 * 8); } ...
来源: Laya_社区 发布时间: 20170320
...hape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{rotation:360},3000); } override public function get width():Number{ return _shape.width; } override public function get height():Number{ return _shape.height; } } } BUG2:package ui.test { import l...
来源: Laya_社区 发布时间: 20170124
... 0, 720, 5120); //更改背景2的位置,放在背景1的上边 this.bg1.pos(0, -3840); this.bg2.pos(0, -8960); //把背景图显示在容器内 this.addChild(this.bg2); //创建一个帧循环,更新容器的位置 Laya.timer.frameLoop(1, this, this.onLoop); 补充:在游戏开始游戏中loa...
来源: Laya_社区 发布时间: 20181105
...(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text); text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.font = "remember"; text.pos(100, 200); Laya.stage.addChild(text); } } } 或者在con...
来源: Laya_社区 发布时间: 20191211
...createText(); //设置不进行任何裁剪 t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2:Text= createText(); //设置不显示文本域外的字符像素 t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3 = createText(); //设置不显示超出文本域的字符 t3.overflow = Text.HIDDEN; t3.p...
来源: Laya2.0_文档 发布时间: 20210715
...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...
来源: laya_api 发布时间: 20170929
...(render1); Laya.stage.addChild(render2); render1.pos(200,600); render2.pos(200,800); } } 勾选主相机之前 勾选主相机之后 具体参考附件demo 附件 : --> test1.zip 2025-12-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20251229
...b.loadImage(newBg1, x, y, singleWidth, singleHeight); sb.skin = newBg1; sb.pos(x,y); sb.size(singleWidth, singleHeight); // sp.loadImage(imgUrl, x, y, singleWidth, singleHeight); sp.skin = imgUrl; sp.pos(x,y); sp.size(singleWidth, singleHeight);你这种需求sprite就不太实用,你直接用Imag...
来源: Laya_社区 发布时间: 20180427
..., 800)); } function onStageClick() { var p = new Point(0, 0); layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); layer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); sprite.pos(p.x, p.y); } function mapLoaded() { layer = tiledMap.getLayerByIndex(0); var radi...
来源: Laya_示例 发布时间: 20260303