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

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

231. 关于微信小游戏关系链的问题 [ 67%]

...ysChange=true; console.log(rankTexture)       LayaUISample.scoreview.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height);     }); var rankTexture=new Texture(Browser.window.sharedCanvas); 这里报错 VM13215:1 gameThirdScriptError bitmap._addReference is not a func...

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

232. 设置遮罩会导致内存大大增高 [ 67%]

...尽量要避免设置mask,成本比较高,这个需求也可以通过 graphics的drawTriangles来实现drawTriangles(texture:Texture, x:number, y:number, vertices:Float32Array, uvs:Float32Array, indices:Uint16Array, matrix:Matrix = null, alpha:number = 1, color:string = null, blendMode:string = ...

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

233. 图片如何能实现按照弧度360度的裁剪? [ 67%]

...mage.cacheAs = "bitmap"; bgImage.addChild(pMask);   let angle = 45; pMask.graphics.clear(); let radius = 80; pMask.graphics.drawPie(45, 45, radius, angle, 90, "#000000"); pMask.blendMode = "destination-out"; 2019-06-15 0 0 分享 微博 QZONE 微信 王壮壮 赞同来自: https://blog.csdn.net/wan...

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

234. laya.spine.SpineSkeleton_API3.0 [ 67%]

... Sprite SpineSkeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag PAUSED PLAYING STOPPED drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY animationName blendMode cach...

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

235. ani 如何 更改某一帧的 skin ,, [ 66%]

...ica - 知识达人 赞同来自: ani.index是当前播放到哪一帧 ani._graphics._one[0]是一个Texture 你自己加个判断,如果播放到了你要改变皮肤那一帧的话你就改变ani._graphics._one[0] 2017-10-25 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

236. laya.display.EffectAnimation_API3.0 [ 66%]

...ation EffectAnimation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anch...

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

237. 不规则热区的实现 [ 66%]

...击其中一个ape,进入到ape内部,然后从左侧的组件面板的Graphics文件夹中拖出来一个Poly(不规则多边形),这个就相当于我们在代码中的Graphics实例。 步骤三:   通过在Poly右侧属性面板中添加更多的points坐标点,来得到一个多...

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

238. laya.ani.bone.Skeleton [ 66%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高...

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

239. laya.ui.AdvImage_API3.0 [ 66%]

...rarchy Image AdvImage Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSourc...

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

240. 分享:LayaAir下如何获取图集下的小图资源? [ 66%]

...ure=Laya.loader.getRes("atlas_res/01.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,200,100); Laya.stage.addChild(sp); } } } 小图路径请参考.json文件的参数 ,直接prefix的值加上小图名称即可获取到   2016-07-07 1 2 分享 微博 QZONE 微信 为什么被...

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