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

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

11. 其他引擎的Demo-Example_21 [ 90%]

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

12. Sprite.loadImage();问题 [ 89%]

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

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

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

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

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

14. Sprite-切换纹理 [ 88%]

...var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); var texture = Laya.loader.getRes(textureUrl); ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 ape.size(texture.width, texture.height); } })();module laya { import Sprite = Laya.Sprite; import ...

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

15. Sprite-切换纹理 [ 88%]

... let monkey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = ...

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

16. 关于Sprite回收 [ 87%]

...            Pool.recover("item", item);                 item.graphics.clear();             }    item的父容器是通过回收池获取的,父容器带有原来的item,现在希望删掉原来的item,添加新的item,使用上面的代码去达不到效果,结果是...

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

17. 【简单跑酷--JS版】---Lv.3 添加地板 [ 87%]

...ader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人物的位置 this.bg.y = -32; this.addChild(this.bg); } this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); //创建一个帧循环处理函...

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

18. 这种进度条怎么实现? [ 87%]

...his.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE >> 1, this.DEF_SIZE >> 1,-90,this.startY,'#ff0000') this.$circleSprite.blendMode = "destination-out" this.$circleSprite.pos(this.CIRCLE_WIDTH >> 1,thi...

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

19. 自动旋转后残影 [ 85%]

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

20. 最新版本 1.7.5 beta fontClip [ 85%]

...    if (_bitmap && _sources) {                 this.graphics.clear();                 var splitArr:Array = value.toString().split('');                 for (var i:int = 0; i < splitArr.length; i++) {                     var te:Texture =...

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