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

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

1. 关于graphics._saveToCmd的问题 [ 100%]

关于graphics._saveToCmd的问题 this.sp.graphics._saveToCmd(this.test1,arr);   执行上面代码的代码后,会一直执行this.test1函数,如何让它只执行一次呢? 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

2. Sprite-新手引导 [ 97%]

...游戏背景 var maskArea = new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //...

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

3. Sprite-新手引导 [ 97%]

...prite(); guideContainer.addChild(maskArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); guideContainer.addChild(interactionAre...

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

4. 关于环形进度条,进度不能重置问题 [ 94%]

...is.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle.graphics.drawCircle(this.say.width/2, this.say.height/2, this.say.width/2, "#00ffff");...

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

5. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 93%]

关于graphics镂空的问题https://ask.layabox.com/question/139 https://ask.layabox.com/question/139 贴上说镂空问题已经解决,但我还是遇到同样的问题,我使用的是layaair1.7.5,求教。 2017-07-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

6. webgl遮罩的BUG [ 93%]

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

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

7. 关于切换图片的问题 [ 92%]

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

8. drawTexture 画出来的数据会有以前的数据 [ 92%]

...er.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) htmlCanvas.clear(); htmlCanvas = iconSpr.drawToCanvas(iconSpr.width,iconSpr.height,0,0); if(!texture) texture = new Texture(htmlCanvas); else { texture.destroy(true);...

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

9. 其他引擎的Demo-Example_21 [ 91%]

...种开发语言、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

10. skin 大于512 的释放问题 [ 91%]

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