大约有 391 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
Laya_社区(179) Laya3.0_api(65) Laya2.0_api(59) laya_api(54) Laya2.0_文档(10) Laya3.0_文档(10) Laya2.0_示例(8) Laya_示例(6)
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...
来源: Laya3.0_api 发布时间: 20231115
...lic class FrameClipInheritanceFrameClip FrameAnimation AnimationPlayerBase Sprite Node EventDispatcher Object 关键帧动画播放类 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示...
来源: laya_api 发布时间: 20170422
...录宽度 this.width_x = this.progress.width + 3; this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = this.vmask; this.changevalue = function(value) { this.targe...
来源: Laya_社区 发布时间: 20180725
...yObject.filters = [glowFilter]; var ui_hpBarMask = new Laya.Sprite(); ui_hpBarMask.graphics.clear(); ui_hpBarMask.graphics.drawRect(0, 0, 154, 12, 0xffffff); this.txt_pro.displayObject.mask = ui_hpBarMask; 附件 : --> 2022-05-31 添加评...
来源: Laya_社区 发布时间: 20220531
...复 w1114367261 赞同来自: 你在绘制graphics的时候绘制在一个sprite上试试那!? 2018-05-10 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 试过了,画两次就卡了,我现在只能用JS的原生方法写了,效果还不错,不知道layaAir和js原生的方法有...
来源: Laya_社区 发布时间: 20180510
...te function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变量);} 2018-12-04 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...
来源: Laya_社区 发布时间: 20181204
...我用ts编写的相关内容,都要使用import和export吗? new Laya.Sprite();绘制图形以后,怎么删除释放资源? drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 富文本下划线绘制bug Laya拖尾怎么停止或清...
来源: Laya_社区 发布时间: 20180611
...方式存储,可以通过cmds属性访问所有命令流。Graphics是比Sprite更轻量级的对象,合理使用能提高应用性能(比如把大量的节点绘图改为一个节点的Graphics命令集合,能减少大量节点创建消耗)。 see laya.display.Sprite#graphics Hierarchy Graphi...
来源: Laya3.0_api 发布时间: 20231115
...问题 Dialog:屏蔽点击Dialog之外的区域关闭弹框 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 runtime运行报错! 用了ByteArray的zlib.min.js后报错 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promis...
来源: Laya_社区 发布时间: 20171012
...要知道。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp:Sprite = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#FF0000"); var bounds:Rectangle = sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计...
来源: Laya2.0_文档 发布时间: 20210715