大约有 361 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
Laya_社区(185) Laya3.0_api(134) Laya2.0_文档(16) Laya3.0_文档(9) Laya2.0_api(6) Laya_示例(5) Laya2.0_示例(5) laya_api(1)
...nder._mainCanvas); Laya.Render._mainCanvas.source.style.top = "50px"; this.setup(); const parent = document.getElementById("preview"); const child = document.getElementById("layaContainer"); parent.appendChild(child); console.log(th...
来源: Laya_社区 发布时间: 20201130
...我就画不出来。。 this.graphics.fillText(index + "", p.x, p.y, "12px Arial", "0xffffff", "center"); 在debugger的时候打印出来是undefined... 如果超出数量还会报错,需要改底层才行吗? 2018-01-15 0 2 分享 微博 QZONE 微信 qian 赞同来自: 刚确认了一下 ...
来源: Laya_社区 发布时间: 20180112
...Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,简单来说就是一个精灵,用不了这么...
来源: Laya_社区 发布时间: 20180425
...相对于画布)。 font:String — 定义字体和字号,比如"20px Arial"。 fillColor:String — 定义文本颜色,比如"#ff0000"。 borderColor:String — 定义镶边文本颜色。 lineWidth:Number — 镶边线条宽度。 textAlign:String — 文本对齐方式,可选值...
来源: laya_api 发布时间: 20170929
...= "#f00f00" htmlText.y = 800; htmlText.innerHTML = "<font style='font:30px'>显示的字符</font>" Laya.stage.addChild(htmlText); 附件 : --> 2019-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复...
来源: Laya_社区 发布时间: 20190628
...法啊,而且刚发现,用Render._mainCanvas.source.style.top="100px"这样的方法,在浏览器上有效果,但是在微信小游戏上是没有效果的,而且图像会被拉伸,和这个贴的效果一样https://ask.layabox.com/question/14341 刚刚我直接调整Laya.stage...
来源: Laya_社区 发布时间: 20180504
...话,那就做2个页,正常显示pc页面,js判断当宽度小于768px就跳转至Mobile页面,不就实现了嘛 2017-07-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zjkynu 相关问题 微信关系链:LayaAir引擎针对...
来源: Laya_社区 发布时间: 20170726
...e|false; 是否是斜体 bold:true|false; 是否是粗体 letter-spacing:10px; 字间距 font-family:宋体; 字体 font-size:20px; 字体大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边...
来源: Laya3.0_api 发布时间: 20231102
...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=="'jump'") { trace('jump'); } else...
来源: Laya_社区 发布时间: 20170406
...相对于画布)。 font:String — 定义字体和字号,比如"20px Arial"。 fillColor:String — 定义文本颜色,比如"#ff0000"。 borderColor:String — 定义镶边文本颜色。 lineWidth:Number — 镶边线条宽度。 textAlign:String — 文本对齐方式,可选值...
来源: Laya2.0_api 发布时间: 20190513