大约有 592 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(424) Laya3.0_api(61) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(30) Laya3.0_文档(11) laya_api(2) Laya2.0_api(1)
...Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs center...
来源: Laya3.0_api 发布时间: 20231115
...ameLoop(1, this, ()=> { angle +=1; if(angle > 360) { angle = 0; } sp.graphics.clear(); sp.graphics.drawPie(128,128,128,0,angle,"0xff0000"); var tex = sp.drawToTexture(256,256,0,0); //var html:Laya.HTMLCanvas = sp.drawToCanvas(256,256,0,0); //img.loadImageSource(html.source,true); //html.clear(...
来源: Laya_社区 发布时间: 20190520
...aya.loader.getRes(url); let maskMc:Laya.Sprite = new Laya.Sprite(); maskMc.graphics.drawTexture(tx,0,0,tx.width,tx.height); this.bar.displayObject.mask = maskMc; this.bar.visible = true; maskMc 是外部加载的一个纹理,就算是一起放在fairygui里面的还是不行this.bar 是在fairygui...
来源: Laya_社区 发布时间: 20200108
...ER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#EEFF00"); var label:Label=new Label(); label.fontSize=60; label.text="666"; label.bold=true; label.color="#000000"; sp.addChild(label); sp.size(200,200); Laya.stage.addChild(sp); Laya.timer.fra...
来源: Laya_社区 发布时间: 20180403
...r.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); Laya.timer.loop(delay,this,onLoop); } private function onLoop():void { delay-=50; sp.x+=20; Laya.timer.clear(this,onLoop); Laya.timer.loop(delay,this,onLoop);...
来源: Laya_社区 发布时间: 20170626
...把你的“hero_03.png”这个文件放到atlas下,把url改成 hero.graphics.drawTexture(Laya.loader.getRes("res/atlas/role/hero_03.png")); 2017-11-20 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 刚刚你这一行报错,我就把你这一行代码改了,我不清楚,这是...
来源: Laya_社区 发布时间: 20171120
...配采用showAll后留白部分的颜色问题 IDE创建的UI 层级问题 graphics alpha 问题 Panel中的东西左右拖动好象有问题 laya1.7.9beta版 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? 移植了一个游戏 代码重...
来源: Laya_社区 发布时间: 20171212
...色块了private function test():void { var sp1:Sprite = new Sprite(); sp1.graphics.drawRect(0,0,300,200,"#ff0000"); var htmlCanvas:HTMLCanvas = sp1.drawToCanvas(300,200,0,0); Laya.timer.once(1000,this,function():void{ var texture:Texture = new Texture(htmlCanvas); var sp2:Sprite = new Sprite(); sp2...
来源: Laya_社区 发布时间: 20181121
...i.Image this.uFace.loadImage(data.face, 0, 0, 50, 50, Handler.create(this, graphicsImg)) function graphicsImg() { //创建遮罩对象 var cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 cMask.graphics.drawCircle(25, 25, 25, "#ff0000"); //圆形所在的位置坐标 cMask.pos(0, 0); //...
来源: Laya_社区 发布时间: 20181214
...监听事件没有反应呢? var xxx:Laya.Sprite = new Laya.Sprite(); xxx.graphics.drawRect(0,0,100, 100,"#ffffff"); xxx.size(100, 100); xxx.mouseEnabled = true; xxx.x = (Laya.stage.width - xxx.width) / 2; xxx.y = (Laya.stage.height - xxx.height) / 2; Laya.stage.addChild(xxx); xxx.on(Laya.Event.CLIC...
来源: Laya_社区 发布时间: 20170606