大约有 386 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(274) Laya2.0_文档(23) Laya3.0_api(19) Laya2.0_api(17) Laya2.0_示例(15) Laya3.0_文档(14) Laya_示例(13) laya_api(11)
...;h3>This page contains the following errors: </h3> <div style="font-family:monospace;font-size:12px">error on line 1 at column 53: attributes construct error </div> <h3>Below is a rendering of the page up to the first error. </h3> </parsererror> </body> &...
来源: Laya_社区 发布时间: 20171130
...ger = new Text(); logger.size(Laya.stage.width, Laya.stage.height); logger.fontSize = 30; logger.font = "SimHei"; logger.wordWrap = true; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; Laya.stage.addChild(logger); } keyboardInspector() { let numKeyDown = keyDownList.len...
来源: Laya2.0_示例 发布时间: 20251130
... data += this.getTextAlignment(); data += 'font-size="' + this.fontSize; data += '" filter= "url(%23shadow)" fill="black"' data += " font-family='" + '"微軟正黑體",arial,sans-serif' + "'"; da...
来源: Laya_社区 发布时间: 20180824
... filters : Array滤镜集合。可以设置多个滤镜组合。Sprite font : String 文本的字体名称,以字符串形式表示。 默认值为:"Arial",可以通过Font.defaultFont设置默认字体。 如果运行时系统找不到设定的字体,则用系统默认的字体渲染文...
来源: laya_api 发布时间: 20170929
... displayName: "字体名称", default: "宋体",isAsset: true, inspector: "Font"}) 您好,这个装饰器可以实现您需要的效果 2025-09-16 0 1 分享 微博 QZONE 微信 LayaAir大为 赞同来自: 您可以设置一下启动脚本,在启动脚本中加载字体资源,加载完成后...
来源: Laya_社区 发布时间: 20250910
...下的Document.as文件代码,找到 var ctx:Context=canvas.context; ctx.font="normal 100 12px Arial"; 这段代码语句,将12px根据你的需求改变值的大小,值越大,字体越大,反之越小。 步骤: 一、在你的C盘目录下找到你所使用的版本对应的iflash引...
来源: Laya_社区 发布时间: 20151214
...); this.owner.parent.addChild(sp); }p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hannotate SC'; -webkit-text-stroke: #000000} span.s1 {font-kerning: none}添加RigidBody组件后anchorX与anchorY失效,去掉sp.addComponentIntance(body)这句则正常 附件 : --> 2020-02-16 添加评论 ...
来源: Laya_社区 发布时间: 20200216
... let ttfloader = new Laya.TTFLoader(); ttfloader.load("font/ubuntu-bold.ttf"); ttfloader.fontName = "ubuntu"; ttfloader.err = Laya.Handler.create(this, () => { console.log("加载失败ubuntu-bold.ttf"); ...
来源: Laya_社区 发布时间: 20220330
....getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5' + ',5)'; cxt.font = "bold 50px 宋体"; cxt.textAlign = "center";//文本的对齐方式 cxt.textBaseline = "center";//文本相对于起点的位置 //设置文字,位置 cxt.fillText("-" + hart.toString(), 100, 50, 200);//有填充cxt.f...
来源: Laya_社区 发布时间: 20200714
...} private function test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text); text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.font = "remember"; text....
来源: Laya_社区 发布时间: 20191211