大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
Laya_社区(720) Laya3.0_api(64) Laya2.0_api(59) laya_api(56) Laya2.0_文档(43) Laya2.0_示例(32) Laya_示例(32) Laya3.0_文档(11)
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。UIComponent height : Number[override] 显示...
来源: Laya2.0_api 发布时间: 20190513
...onent Label TextInput Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bold borderColor bottom cac...
来源: Laya3.0_api 发布时间: 20231115
...umber = 40; var button: Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } //private musicString:string = "./sounds/心跳的证明...
来源: Laya_社区 发布时间: 20190421
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number[override] Video hitArea : * 可以设置一个Rectangle区...
来源: Laya2.0_api 发布时间: 20190513
...</span>"; Laya.stage.addChild(html); var sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, 300, 30, null, "#999999"); Laya.stage.addChild(sp); var sp2 = new Laya.Sprite(); sp2.graphics.drawRect(0, 30, 300, 30, null, "#999999"); Laya.stage.addChild(sp2); 2025-11-13 1 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20250906
...r.getRes("comp/image.png"); var ape1 = new Laya.Sprite(); ape1.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape1); //面板 var panel = new laya.ui.Panel(); panel.width = 500; panel.height = 500; panel.x = 200; var label = new laya.ui.Label...
来源: Laya_社区 发布时间: 20170401
...aya_XS 赞同来自: 截图的功能,你把文理信息,传给sprite的graphics的drawtocanvas,然后得到一个htmlcanvas,通过htmlcanvas的source方法,可以过得原生的canvas,再通过原生保存的接口就可以做你说的事情了! 2017-02-18 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170216
...ng 赞同来自: 用TimeLine的方式即可 var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.to(sp,{x:50,y:50},1000).to(sp,{x:30,y:30},1000); timeLine.play(); 2017-06-15 0 2 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20170615
...• 2018-07-10 17:27 我怎么改变它的值呢,扇形我是通过this._graphics._one[3] = number;来改变数值的,里面的圆形改变颜色改变不了了 Laya_Aaron • 2018-07-10 17:32 这个要重新画才能改。 bohan • 2018-07-10 18:01 @Laya_Aaron:我现在,在代码里不知...
来源: Laya_社区 发布时间: 20180707
...esult; } onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g...
来源: Laya2.0_示例 发布时间: 20260303