大约有 164 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
...ection === 0) { gridSprite.graphics.drawImage(tTileTexSet.texture, tX + tTileTexSet.offX, tY + tTileTexSet.offY); // } // else { ...
来源: Laya_社区 发布时间: 20220627
...的需求适当调整,如果内容不变可以不用设置成true sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite); }); } }开发数据域:public class LayaUISample { public function LayaUISample() { //微信小游戏适配库初始化 MiniAd...
来源: Laya_社区 发布时间: 20180525
...re = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp....
来源: Laya2.0_文档 发布时间: 20210714
...,也包括我(!嘻嘻) var a: Laya.Sprite = 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...
来源: Laya_社区 发布时间: 20161109