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

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

281. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 52%]

...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(fish.score...

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

282. Uncaught Can not find class Laya.Text [ 52%]

....2运行报错。:getBitmapData Cannot find the specified character in all fonts:263c Uncaught TypeError: Cannot read property 'props' of undefined 问题状态 最新活动: 2021-04-22 09:49 浏览: 4538 关注: 4 人 Fico • 2020-11-25 11:08 在.scene文件中的 文字对象中的runtime熟悉...

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

283. HTMLDivElement貌似不支持空格? [ 52%]

...='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDivElement</span>"; html += "<span color='#6ad2e3'>创建的</span><span> </span><span>2222</span><br/>"; html += "<span color='#d26ae3'&g...

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

284. 如何在3d场景中添加文字 [ 52%]

...tName.color = "#FFFFFF"; this.txtName.text = this.playerName; this.txtName.fontSize = 18; this.txtName.font = "Arial"; this.txtName.bold = true; this.txtName.align = "left"; Laya.stage.addChild(this.txtName); //设置其他玩家角色名称跟随角色模型 var currPosition2:Laya.Vector3 = new Lay...

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

285. Uncaught Can not find class srcipt/game/Game_App.ts [ 52%]

....2运行报错。:getBitmapData Cannot find the specified character in all fonts:263c 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 运行报错 Uncaught Can not find scene:GameView.scene undefined Uncaught TypeE...

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

286. 2.0.0beta5 can not find class Laya.Text [ 51%]

....2运行报错。:getBitmapData Cannot find the specified character in all fonts:263c Cannot find module Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js QQ游戏发布之后,运维后台报错 Can't find variable: QQJSBridge LayaIDE2.9.0beta版本打包IOS项目出现报错: ReferenceError: ...

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

287. 聊天室使用HTMLDivElement,宽度被固定为180了,这个怎末改,求救 [ 51%]

... textfiled.width = 890; textfiled.style.color = "#10922a"; textfiled.style.font = "黑体"; textfiled.style.fontSize = 30; textfiled.style.valign = "middle"; var clientName = "<span style='color:#ffcc00;'>" + "聊天室" + ":</span>"; var clientInfo = "<span style='color:#ff9900;'&g...

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

288. 2.0Beta5中可正常显示的字体在2.0正式版中无法正常显示 [ 51%]

...无法正常显示 使用第三方字体文件(见附件)代替assets/font/layabox.ttf(文件名不变),使用2.0Beta5类库打包,在安卓手机上安装后,app端字体显示位置与网页调试时完全一致。   但是同样的第三方字体,使用2.0正式版本类库打包...

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

289. Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 [ 51%]

...会报这个错。。才能进去 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545} span.s1 {font: 12.0px '.PingFang SC'} 12-09 22:04:33.105 12728-12832/? E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>&g...

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

290. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 51%]

请教Laya.BitmapFont加载位图文字不能显示的问题 // 程序入口 class GameMain{ private mFontName:string = "diyFont"; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", n...

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