大约有 36 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
Laya_社区(20) Laya_示例(3) Laya3.0_api(3) Laya2.0_示例(3) laya_api(2) Laya2.0_api(2) Laya3.0_文档(2) Laya2.0_文档(1)
... Tank1919 赞同来自: 这是graphics的一个bug。 Laya.stage.graphics.fillText("文本",0,0, "500px Arial", "#ffffff", "left"); 2021-09-07 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Tank1919 相关问题 官方有没有考虑做...
来源: Laya_社区 发布时间: 20191206
...。 分别是Text文本类的文本统一提交方式,和Graphics类的fillText文本单字符绘制提交方式。 如果采用了Text文本,那每一个Text文本对象中的文本字符会一起形成小图集提交到大图合集中,比如游戏中某个文本对象有300字,其中一个...
来源: Laya_社区 发布时间: 20240221
...y) { } public static drawText(sp: Laya.Sprite, text: string) { sp.graphics.fillText(text, 0, -20, "20px Arial", "#000000", "center"); } Laya_Aaron • 2018-02-11 15:58 你是如何进行缩放的呢,我缩放了sp 边框也跟着变小 a1748004424 • 2018-02-11 16:41...
来源: Laya_社区 发布时间: 20180211
...TextCmd 在画布上绘制“被填充且镶边的”文本。 Graphics fillText(text:String, x:Number, y:Number, font:String, color:String, textAlign:String):FillTextCmd 在画布上绘制文本。 Graphics fillTexture(texture:Texture, x:Number, y:Number, width:Number = 0, height:Number = 0, ...
来源: Laya2.0_api 发布时间: 20190513
...play.Graphics 类可以查看到API的各种矢量绘图方法。 drawRect fillText drawPath drawCircle drawPie drawLine drawLines drawPoly drawCurves ...... 下面将对这些Graphics进行讲解。 二、绘制矩形与圆角矩形 2.1 IDE绘制矩形 在Sprite对象的 Graphics 组件中,可以...
来源: Laya3.0_文档 发布时间: 20251010
...ing):void 在画布上绘制“被填充且镶边的”文本。 Graphics fillText(text:String, x:Number, y:Number, font:String, color:String, textAlign:String, underLine:int = 0):void 在画布上绘制文本。 Graphics fillTexture(tex:Texture, x:Number, y:Number, width:Number = 0, height:Number...
来源: laya_api 发布时间: 20170929
...erTextCmd 在画布上绘制“被填充且镶边的”文本。 Graphics fillText(text:String, x:Number, y:Number, font:String, color:String, textAlign:String):FillTextCmd 在画布上绘制文本。 Graphics fillTexture(texture:Texture, x:Number, y:Number, width:Number = 0, height:Number = 0, ty...
来源: Laya2.0_api 发布时间: 20190513
...elSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { trace('fall'); } else if(tEventData.name...
来源: Laya_社区 发布时间: 20170406
...t这种文本组件,你调一下引擎Graphics类的文本绘制方法,fillText、fillBorderText、strokeText light_1234 • 2023-10-19 10:04 额。。。 可以是可以,但是这样是不是不太好,flash里的文本有静态文本 动态文本的勾选。这样操作起来是不是对客...
来源: Laya_社区 发布时间: 20231018
...ze(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; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Han...
来源: Laya_社区 发布时间: 20170527