大约有 797 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
...i].parent ){ return this.balls[i]; } } let ball = new Laya.Sprite(); ball .graphics.drawRect( 0,0,140,140,"#d9d919"); this.balls.push( ball ); return ball; } } new TexasMain(); [/i][/i] 附件 : --> 不明抖动.rar 2018-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180226
....getRes('res/mao.jpg') // console.log(t) // var a = new Laya.Sprite() // a.graphics.drawTexture(t, 0,0) // a.scaleX = 0.3 // a.scaleY = 0.4 // a.pos(0,300) // Laya.stage.addChild(a) // })) // ape.pos(100, 200) // var c = -15 // Laya.timer.frameLoop(40, null, function () { // c += 0.00001 // console....
来源: Laya_社区 发布时间: 20180104
... { if(this.szurl!="") this.disp() this.szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url; } } public disp(){ this.skin=""; if(this.szurl){ Laya.loader.clearRes(this.szurl,true); //***2.0这里写法为Laya.loader.clearRes(this.szurl); } } public set url(value:string){ this.o...
来源: Laya_社区 发布时间: 20181201
...():void { var btn:Sprite=new Sprite();//绘制一个红色矩形按钮 btn.graphics.drawRect(0,0,150,30,'#FF0000'); btn.pos(10,430); btn.size(150,30);//sprite如果要触发鼠标事件,务必设置好size,也就是鼠标的相应区域 btn.on(Event.CLICK,this,onChangeSkin); Laya.stage.addChild(...
来源: Laya_社区 发布时间: 20170324
...t.STATIC_DRAW*/0x88E4,true); this._indexBuffer=new IndexBuffer3D(/*laya.d3.graphics.IndexBuffer3D.INDEXTYPE_USHORT*/"ushort",this._numberIndices,/*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4,true); this._vertexBuffer.setData(vertices); this._indexBuffer.setData(indices); this.memorySize=(this._verte...
来源: Laya_社区 发布时间: 20180113
...编辑器赋值skin。这样是否是个BUG。调用load前 也调用了.graphics.clear()。请问官方是否有次BUG。应该不用提供demo。必现 附件 : --> 录像1.rar 2018-09-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180928
...aya.Texture(sharedCanvas); texture.bitmap.alwaysChange = true; rankSprite2.graphics.drawTexture(texture, left*pixelRatio, top*pixelRatio, width*pixelRatio,height*pixelRatio); 这样在安卓上跑好卡啊 2018-05-07 0 0 分享 微博 QZONE 微信 yung 赞同来自: 关于开放域,微信将...
来源: Laya_社区 发布时间: 20180426
...); Laya.stage.addChild(card[index]); card[index].name = index; card[index].graphics.drawRect(0, 0, 80, 120, null, "#000000", 2); card[index].graphics.loadImage("linkgame_card.jpg"); card[index].size(80, 120); card[index].pos(10 + 100 * i, 130 + 140 * j); card[index].on(Laya.Event.CLICK, this, functi...
来源: Laya_社区 发布时间: 20160623
...自: 不知道你说的功能是基于2d的还是3d的,2d的可以通过graphics的方式,drawtexture的方法你绘制几张带透明度的图片应该就可以实现你的效果。 2020-07-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20181217
...于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 graphics alpha 问题 event自定义事件的问题 问题状态 最新活动: 2019-05-11 16:44 浏览: 973 关注: 2 人
来源: Laya_社区 发布时间: 20181213