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

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

1. 用sprite.graphic.draw出一个图形,能否在代码中改变此图形的颜色 [ 100%]

用sprite.graphic.draw出一个图形,能否在代码中改变此图形的颜色 2017-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你可以先调用sprite.graphics.clear(),然...

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

2. batch draw 减少draw call [ 99%]

...l里面呢?   sp = new Sprite(); Laya.stage.addChild(sp);  //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.graphics.drawCurves(352, 58, [0, 0, 19, -100, 39, 0, 58...

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

3. 关于环形进度条,进度不能重置问题 [ 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

4. 关于大量绘制 draw的性能优化问题 [ 94%]

...nt.MOUSE_MOVE, this, mousemove); function  mousemove(e) {     drawLayer.graphics.drawCircle(e.target.mouseX,e.target.mouseY,20,"#ffffff")     drawLayer.cacheAsBitmap; }   我的思路是每一次move都把对应的圆形区域绘制到一个容器上,这样一来drawcall就不会一直增加...

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

5. laya.spine.SpineSkeletonRenderer_API3.0 [ 92%]

...ya/spine/SpineSkeletonRenderer.ts:16 Methods draw draw(skeleton: Skeleton, graphics: Graphics, slotRangeStart?: number, slotRangeEnd?: number): void Defined in laya/spine/SpineSkeletonRenderer.ts:41 Parameters skeleton: Skeleton graphics: Graphics Default value slotRangeStart: number = -1 Default va...

来源: Laya3.0_api 发布时间: 20231115

6. 如何实现类似AS3的BitmapData.draw去绘制整个Sprite? [ 87%]

...与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: sprite的graphics变量,有个drawTexture,你可以一次绘制一个文理。不能跟as3点draw一样,可以直接draw一个显示对象到画布! 2017-02-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

7. 如何从代码中创建UI,progressbar [ 86%]

...ogressBar 第一个问题:        UI下的skin是组件的皮肤,graphics.drawdraw的图片纹理        如果UI的组件为Image,更换Image的Skin和graphics.draw一张图片纹理效果是一样的         如果UI的组件为button等有点击状态的组件时,更...

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

8. laya.ani.bone.BoneSlot_API3.0 [ 86%]

.../BoneSlot.ts:472 用原始数据拷贝出一个 Returns BoneSlot draw draw(graphics: GraphicsAni, boneMatrixArray: any[], noUseSave?: boolean, alpha?: number): void Defined in laya/ani/bone/BoneSlot.ts:212 把纹理画到Graphics上 Parameters graphics: GraphicsAni boneMatrixArray: any[] Default val...

来源: Laya3.0_api 发布时间: 20231115

9. 这种进度条怎么实现? [ 84%]

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

10. Laya的DrawCall问题,同一个atlas为什么会有多个draw[ 84%]

...导入了一个Atlas序列图,从里面取出texture,然后用sprite的graphics.drawTexture显示。为什么会有多个draw? 2016-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: ...

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