大约有 60 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
Laya_社区(41) Laya3.0_api(5) Laya_示例(3) Laya2.0_示例(3) Laya2.0_api(3) laya_api(2) Laya3.0_文档(2) Laya2.0_文档(1)
...line = "center";//文本相对于起点的位置 //设置文字,位置 cxt.fillText("-" + hart.toString(), 100, 50, 200);//有填充cxt.font="bold 60px 宋体"; this.texture2D = new Laya.Texture2D(256, 256); this.texture2D.loadImageSource(this.cav); this.mat.renderMode = Laya.UnlitMaterial.RENDERMOD...
来源: Laya_社区 发布时间: 20200714
...ntext(); ctx.fillStyle = "red"; ctx.fillRect(120, 10, 150, 150,"red"); ctx.fillText("texttt",100,100,"","#ffffff","center"); console.log("draw complete"); 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...
来源: Laya_社区 发布时间: 20170502
...同来自: 同样的问题,不过我的是只在dialog里模糊,使用fillText是清晰的 2019-12-26 0 1 分享 微博 QZONE 微信 allenhou 赞同来自: 文本在缩放后,就出现模糊,这是什么情况 2020-01-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...
来源: Laya_社区 发布时间: 20180131
...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
...绘制文字就是会增加drawcall kezhiyu • 2018-05-23 10:16 __proto.fillText=function(text,x,y,font,color,textAlign){ Stat.drawCall++; if (arguments.length > 3 && font !=null){
来源: Laya_社区 发布时间: 20180516
...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
...ected All Inherited Externals Only exported Menu Globals "laya/display/cmd/FillTextCmd" FillTextCmd Class FillTextCmd 绘制文字 Hierarchy FillTextCmd Index Properties x y ID Accessors align color font stroke strokeColor text Methods recover create Properties x x: number = 0 Defined in laya/displa...
来源: Laya3.0_api 发布时间: 20231115
...; var _x = xAction(j); var _y = yAction(printNumber); this.sprite.graphics.fillText(element, _x, _y, fonts, this.color, "left"); if (yAction(printNumber + 1) > h) { j++; printNumber = 0; } else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); this.drawT...
来源: Laya_社区 发布时间: 20191103
...awRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } private onPlayMusic(e: ...
来源: Laya_社区 发布时间: 20201203