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

大约有 770 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)

101. laya.ani.bone.BoneSlot_API3.0 [ 85%]

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

102. 图层叠加的实现 [ 85%]

...rite = new Sprite(); var t:Texture = Laya.loader.getRes("res/bg.png"); ape.graphics.drawTexture(t,0,0); var t1:Texture = Laya.loader.getRes("res/wzq.png"); ape.graphics.drawTexture(t1,0,0); var t2:Texture = Laya.loader.getRes("res/rkfb.png"); ape.graphics.drawTexture(t2,0,0); var t3:Texture = Laya.l...

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

103. 显示对象的mask缩放为0时遮罩效果生效 [ 85%]

...testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphic...

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

104. laya.display.Animation [ 84%]

...nceAnimation AnimationBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存池,它以一定的内存开销来节省CPU开销,当相同的动画模版被多次使用时,相比...

来源: Laya2.0_api 发布时间: 20190513

105. Sp.graphics.drawTexture()中的color参数使用的时候,会概率性导致整个场景中的节点颜色改变成我们使用过的颜色。 [ 84%]

Sp.graphics.drawTexture()中的color参数使用的时候,会概率性导致整个场景中的节点颜色改变成我们使用过的颜色。 没有进行其他操作   Sp.graphics.drawTexture(_PreloadUrl._list.texture.brushworkCommon.texture, pointArr[index].x -  this.DrawControl.radiu...

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

106. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 84%]

... = 0 Laya.timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : --> test.zip 2019-07-01 添加评论 免费帖 --> 分享 微博 QZO...

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

107. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...器组件2.2属性设置2.3线段的渲染纹理2.4对比2D线渲染器和Graphics绘制线段三、在代码中使用2D线渲染器组件2D像素线 一、概述 尽管LayaAir引擎提供了绘制图形(Graphics)API用于绘制线段和折线,然而LayaAir3.3开始,提供了更为高级的2...

来源: Laya3.0_文档 发布时间: 20251010

108. 这种进度条怎么实现? [ 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

109. 关于graphics.drawPath手机端和PC端一致的问题 [ 84%]

关于graphics.drawPath手机端和PC端一致的问题 我的版本是1.7.4beta。 我想用drawPath画一个这样的图形。如图 于是我先尝试着先用drawPath画一个圆,然后输入以下代码。 以下是ts文件的全部代码。module laya { import Sprite = Laya.Sprite; impor...

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

110. 设置圆形的zOrder [ 84%]

...天 是很清楚你说的问题,知道你是是创建了一个Graphics circle,graphics都是绘制在最下面的,要放到其他图片上层,你可以创建一个sprite作为容器,把circle作为sprite的子对象,这样控制sprite的层级即可达到你要的效果了 2018-...

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