• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,122 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

181. Sprite.loadImage();问题 [ 82%]

...链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应该是sp.graphics.clear(); 2017-10-19 0 2 分享 微博 QZONE 微信 laya21126 赞同来自:         /**          * 初始化 地图          */         public function initMap(texture:Texture, bgID:int):void{ ...

来源: Laya_社区 发布时间: 20171019

182. 显示对象的mask缩放为0时遮罩效果不生效 [ 82%]

...testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphic...

来源: Laya_社区 发布时间: 20200421

183. WebGL 绘制图形报错 [ 82%]

...下: Laya.init(1136, 640, WebGL ); var mask :Sprite = new Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。   附件 : --> 2017...

来源: Laya_社区 发布时间: 20170216

184. 分享:改变图片皮肤,保持图片原样宽高显示 [ 82%]

...rivate function onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprit...

来源: Laya_社区 发布时间: 20170628

185. 锯齿问题 求破 [ 82%]

...e();               imgSprite.x = 300               imgSprite.graphics.drawTexture(imgTextTure,0,0);               avatarContainer.addChild(imgSprite);               var mask = new Sprite();               mask.graphics.drawCircle(50,50,50,"#00ffff")           ...

来源: Laya_社区 发布时间: 20170209

186. 分享:DrawToCanvas内存释放问题! [ 82%]

...unction CreateBtn(xx:int,yy:int):Sprite { var btn:Sprite=new Sprite(); btn.graphics.drawRect(0,0,200,50,"#FF0000"); btn.pos(100,400); var text:Text=new Text(); text.text="Draw"; btn.addChild(text); Laya.stage.addChild(btn); btn.size(200,50); return btn; } //点击DrawToCanvas按钮,进行截屏 pr...

来源: Laya_社区 发布时间: 20170822

187. skin 大于512 的释放问题 [ 81%]

...ight); } showFight(num: number): void { if (this._sprFight) this._sprFight.graphics.clear(); this._sprFight = bigao.utils.TextrueUtils.getNumberByUrl(resourcesCenter.ResourcesPathStr.FIGHT_NUMBER_PATH_PNG, num.toString()); this._sprFight.x = 600; this._sprFight.y = 150; this.addChild(this._sprFight)...

来源: Laya_社区 发布时间: 20170916

188. 自动旋转后残影 [ 81%]

...:void{ ChangeSize(); if(_tip) _tip.destroy();   _tip = new Sprite(); _tip.graphics.drawRect(0,0,100,100,"#FFFFFF"); _tip.size(100,100); Laya.stage.addChild(_tip);   Tween.to(_tip,{y:Browser.height - _tip.height,x:Browser.width-_tip.width},2000,null); } } }     附件 : --> 2019-05-20 添加评...

来源: Laya_社区 发布时间: 20190520

189. 关于customRender函数不执行的问题 [ 81%]

... // 保证customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLCon...

来源: Laya_社区 发布时间: 20180728

190. 设置骨骼动画停留在某一帧/某一个时间点 [ 81%]

...templet.getTotalkeyframesLength(index));         }         let graphics = armature._getGrahicsDataWithCache(index, frame);         graphics ? armature.graphics = graphics : armature._createGraphics(frame);     } } 2018-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20181115