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

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

11. 如何清除graphics绘制的矢量图 [ 89%]

如何清除graphics绘制的矢量图             let count1 = 1;             Laya.timer.loop(3000, this, function () {                 sp.graphics.clear();                 if (count1 == 0) {                     sp.graphic...

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

12. webgl遮罩的BUG [ 88%]

...现转圈进度条的效果                   this.mMask.graphics.clear();                 Laya.timer.loop(10,this,this.showMask);         public showMask():void         {             this.mMask.graphics.clear();            this.mMas...

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

13. 显示对象的遮罩调用clear后还是能看到显示对象 [ 88%]

...行绘图从而能够显示出img对象,再点击按钮2时调用imgmk.graphics.clear(),结果还是能看到img对象   附件 : --> soundDebug.rar 2020-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 186...

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

14. 关于切换图片的问题 [ 88%]

...; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2); Laya.stage.addChild(this.img) } } new Main(); 出来的结果是两张图合并到了一起, 于是我再尝试 constructor() { Laya.init(1000,800); this.img = new Laya.Spr...

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

15. new Laya.Sprite();绘制图形以后,怎么删除释放资源? [ 86%]

...除释放资源? var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawPie(0,0,50,0,160,"#122D3E");   绘制完成以后,我怎么从舞台删除绘制的图形和释放Sprite相关资源? clear和removeChild???具体怎么操作?   2017-11-19 添加评论 免费帖 --...

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

16. Sprite.loadImage();问题 [ 86%]

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

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

17. 其他引擎的Demo-Example_21 [ 85%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Graphics = Laya.Graphics; var Sprite = Laya.Sprite; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var colors = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; var colorCount = 0; var isDown = false; var path = []...

来源: Laya_示例 发布时间: 20240930

18. graphics持续绘制扇形问题 [ 85%]

graphics持续绘制扇形问题 private function onLoaded():void { //实例UI界面 var testView:TestPageUI = new TestPageUI(); Laya.stage.addChild(testView);   pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); }   private var curAngle:Number = 0; private functio...

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

19. skin 大于512 的释放问题 [ 85%]

...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

20. 其他引擎的Demo-Example_21 [ 84%]

...C779A"], colorCount = 0, isDown = false, path = [], color = colors[0], liveGraphics, canvasGraphics; class PIXI_Example_21 { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自...

来源: Laya2.0_示例 发布时间: 20240930