大约有 487 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(264) Laya3.0_api(65) laya_api(64) Laya2.0_api(59) Laya2.0_文档(12) Laya2.0_示例(8) Laya_示例(8) Laya3.0_文档(7)
... 17:48 浏览: 972 关注: 2 人 yhcliang • 2017-11-16 18:15 animation的graphics中的cmds=null。 yhcliang • 2017-11-16 19:29 哥,还有其他方法吗,你贴的是同一个sprite中绘制多个texture,以减少sprite的数量来优化dc吧,跟我问的貌似牛头不对马嘴。 Monic...
来源: Laya_社区 发布时间: 20171116
...ader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); this.addChild(this.bg); //因为上面的图片是截取的 所以右边可能没有图片了 这里补一个 this.rightBg = new laya.display.Sprite(); this.rightBg.graphics.drawTexture(laya.resource.Texture...
来源: Laya_社区 发布时间: 20160801
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高...
来源: Laya2.0_api 发布时间: 20190513
...); Laya.stage.addChild(ape); apeTexture = Laya.loader.getRes(apePath); ape.graphics.drawTexture(apeTexture); return ape; } } new Filters_Color();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser ...
来源: Laya2.0_示例 发布时间: 20260303
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。UIComponent group : String 资源分组。 Clip...
来源: Laya2.0_api 发布时间: 20190513
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。UIComponent height : Number[override] 显示...
来源: Laya2.0_api 发布时间: 20190513
...1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } console.log(dragRegion) function onStartDrag(e) { this.startDrag(dragRegion, true, 100); } } Laya.class(GolfMainUI...
来源: Laya_社区 发布时间: 20180627
...小? 横屏模式在锁定竖屏的iphone上不能正常显示的问题 graphics alpha 问题 为什么有的图片打包,有的图片不打包? 如图 问题状态 最新活动: 2023-12-14 17:44 浏览: 6663 关注: 2 人 light_1234 • 2023-12-14 21:38 后面版本解决了这个问题。没...
来源: Laya_社区 发布时间: 20231019
...peError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.MovieClip is not...
来源: Laya_社区 发布时间: 20190523
...er.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, }); sp = new Laya.Sprite(); w = size/5, h=size; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, ...
来源: Laya_社区 发布时间: 20180625