大约有 340 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...ayout.width; sharedCanvas.height = layout.height; //先清空绘制 layout.graphics.clear(false); //设置大小 var canvas = new Laya.Texture(sharedCanvas); canvas.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 layout.graphics.drawTexture(canvas); } 2018-08-10 0 0 分享 ...
来源: Laya_社区 发布时间: 20180625
...背景 var maskArea:Sprite = 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_社区 发布时间: 20170315
...og('===this.currentPower: ', this.currentPower); this.NodePowerProgressBar.graphics.clear(); //参数是否为true,都一样 this.NodePowerProgressBar.graphics.drawPie(100, 100, 100, 0, this.currentPower, ''); } 必现条件: 1,第一次进度条绘制到360度是正常的,从第二次开始...
来源: Laya_社区 发布时间: 20190909
...options.srcName].frames[i].res].h, ); // 从大切片切出小切片 skill.graphics.drawTexture(textureIns,aniProps.mc[options.srcName].frames[i].x,aniProps.mc[options.srcName].frames[i].y); // 将小切片渲染到临时精灵上 skillAniArray[i] = skill._graphics._one; // 储存渲染后的小切...
来源: Laya_社区 发布时间: 20190215
...: measureWidth是保护的啊,哪有对应的get函数?我找到 一个GraphicBounds函数,用scale设过比例了,但参数不管写true还是false,都没用! 2018-07-02 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 一花...
来源: Laya_社区 发布时间: 20180702
...题 只要在项目中某个场景创建Circle遮罩该组件(这样的话Graphics中的组件都是这样),打包的html出来放入uiapp中用webview外部引入该html,运行在ios系统上就会黑屏,去除Circle遮罩就完全没问题,这个问题找了很久,没办法解决,导致...
来源: Laya_社区 发布时间: 20191206
...如果还有不明白的我们再沟通!var sp1:Sprite=new Sprite(); sp1.graphics.drawRect(0,0,200,400,"#FF0000"); Laya.stage.addChild(sp1); var sp2:Sprite=new Sprite(); sp2.graphics.drawRect(0,0,300,400,"#0000FF"); sp2.pos(100,100); if(sp1.getBounds().intersects(sp2.getBounds())) { trace("相交...
来源: Laya_社区 发布时间: 20161202
...zh-as-3-2-7 不知道你要的是连接里的还是下面的 sprite.graphic.clear(); 2018-01-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 mcsite 相关问题 请问LayaAir中如何使图片以圆形的方式显示? ios14系...
来源: Laya_社区 发布时间: 20180121
...面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? Graphics alpha setAlpha setFilters 等设置无效 [LayaAirIDE 1.7.19]Image平铺模式下,设置alpha值,效果不正确。 2.0版本IDE,alpha属性怎么不见了 做好的spine动画 添加tweento动画,设置alpha...
来源: Laya_社区 发布时间: 20180917
...yName("eggHole"+[eggLoc[i][0]+eggLoc[i][1]); b.graphics.drawTexture(Laya.loader.getRes(Res),tx-45,ty-45); b.size(92,96); b.name = "egg"+i; Laya.stage.addChild(b); ...
来源: Laya_社区 发布时间: 20170517