• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 377 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)

111. ☆☆☆☆☆☆☆☆☆☆☆每增加一个 view 都会增加一个 drawcall 吗 ☆☆☆☆☆☆☆☆☆☆☆ [ 74%]

...ish.scoreGold); // 价格 fish.scoreText = new Laya.Text(); fish.scoreText.font = "fnt_10103"; // fish.scoreText.cacheAs = 'bitmap'; fish.scoreText.x = fish.scoreGold.width + fish.scoreGold.x - 4; fish.scoreText.y = fish.scoreGold.y + 2; fish.scoreText.text = price; this.scoreBox.addChild(...

来源: Laya_社区 发布时间: 20180516

112. HtmlDivElement的innerHTML属性BUG [ 74%]

...属性BUG var htmlDiv:HTMLDivElement = new HTMLDivElement(); htmlDiv.style.fontSize = 25; htmlDiv.style.color = "#ffffff"; Laya.stage.addChild(htmlDiv); htmlDiv.innerHTML = "<font color='#00ff00'>宝石1<br/>宝石2</font>";用了1.7.17版本测试,未解决,麻烦官方测试...

来源: Laya_社区 发布时间: 20180419

113. 文本-HTML文本 [ 74%]

...LDivElement; let p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; let html = "使用"; html += "HTMLDivElement"; html += "创建的"; html += "HTML文本"; p.innerHTML = html; } showExternalHTML() { const HTMLIframeElement = Laya.HTMLIframeElement; le...

来源: Laya2.0_示例 发布时间: 20241001

114. 计时器-延迟调用 [ 74%]

...ater() { console.log("onCallLater triggered"); var text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.stage.height); text.wordWrap = true; text.valign = "middle"; text.a...

来源: Laya_示例 发布时间: 20241001

115. 计时器-延迟调用 [ 73%]

...ya.Text; console.log("onCallLater triggered"); let text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.stage.height); text.wordWrap = true; text.valign = "middle"; text.a...

来源: Laya2.0_示例 发布时间: 20241001

116. FontClip引起IDE崩溃 [ 73%]

FontClip引起IDE崩溃 我在IDE中添加了Font Clip之后,发现Font Clip的skin和value不能同时为空,否则IDE就会卡死,不知道在游戏中会不会也卡死 2017-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

来源: Laya_社区 发布时间: 20170523

117. HTMLDivElement里的文字无法被选中 [ 73%]

HTMLDivElement里的文字无法被选中 innerHTML = "<span style='font-weight:bold;" + "font:24px Arial' " + "color='red' " + "href='http://ask.layabox.com/www.baidu.com'>" + "LayaBox</span><span>欢迎你的加入</span>" 添加到界面 可以显示出来但文字无法...

来源: Laya_社区 发布时间: 20190314

118. 加载ttf字体该怎么做 [ 73%]

...功,在index.html中我是这么写的     <style>         @font-face {             font-family: yy;             src: url("yy.ttf")         }     </style> 但是打包ipa在iphone上运行显示“不支持style”“不支持div”等等 请问该怎么加载tt...

来源: Laya_社区 发布时间: 20170523

119. 2.0 字体位图 微信小游戏加载 [ 73%]

2.0 字体位图 微信小游戏加载 this.bitmapFont.loadFont("font/font.fnt",new Laya.Handler(this,this.onLoaded)); 附件 : --> 2019-06-17 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自...

来源: Laya_社区 发布时间: 20190617

120. laya.net.Loader [ 73%]

...进制类型,加载完成后返回arraybuffer二进制数据。Loader  FONT : String = font[static] 位图字体类型,加载完成后返回BitmapFont。Loader  groupMap : Object[static] 资源分组对应表。Loader  IMAGE : String = image[static] 纹理类型,加载完成后返回Text...

来源: laya_api 发布时间: 20170929