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

大约有 361 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)

321. laya.display.Graphics_API3.0 [ 48%]

...置(相对于画布)。 font: string 定义字体和字号,比如"20px Arial"。 fillColor: string 定义文本颜色,比如"#ff0000"。 textAlign: string 文本对齐方式,可选值:"left","center","right"。 lineWidth: number 镶边线条宽度。 borderColor: string 定义镶边...

来源: Laya3.0_api 发布时间: 20231115

322. h5项目打包成单机版本的apk 出现卡死 [ 48%]

...;img src="loading_logo.png" style="width: 100%;max-width:500px;" /> </div>

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

323. 浏览器接口 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...能少。 iframe.style.zIndex = 100;//设置层级 iframe.style.left ="100px"; iframe.style.top ="100px"; iframe.src = "http://ask.layaair.com/"; Laya.Browser.document.body.appendChild(iframe); 这里面需要提醒开发者的就是定位和层级要记得设置。很多开发者不注意导致 ifr...

来源: Laya3.0_文档 发布时间: 20251010

324. laya.ani.GraphicsAni_API3.0 [ 47%]

...置(相对于画布)。 font: string 定义字体和字号,比如"20px Arial"。 fillColor: string 定义文本颜色,比如"#ff0000"。 textAlign: string 文本对齐方式,可选值:"left","center","right"。 lineWidth: number 镶边线条宽度。 borderColor: string 定义镶边...

来源: Laya3.0_api 发布时间: 20231115

325. laya针对页游耗用内存大的问题是如何解决的? [ 47%]

... 一、图片资源的优化,单图片的高宽像素均不能超过1024px,否则内存明显升高。 二、要注册内存的回收。不用的资源或数据,一定要置为null。 三、避免重复对象引用。尽可能要去用对象池,不要总new 对象。 四、多次实例对象...

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

326. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 47%]

...wRect(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 Handler(this, onComplete)); } fu...

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

327. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 46%]

...列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize + "px" + " " +this.font ; var xAction = (n) => { return -n * this.fontSize -this.horizontalSpace; }; var yAction = (n) => { return n * this.fontSize + this.verticalSpace; }; this.sprite.pos(x + w-this.fontSize-this.horizont...

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

328. native下使用ttf字体的问题 [ 45%]

...age.as 里面 var sFont:String = "normal 100" + nFontSize +"px Arial"; 改为 var sFont:String = "normal 100 " + font; ggg333 • 2018-08-06 16:39 依然会出问题,然而我没办法给你demo,小demo出不来问题,自己的工程80%的字体还是出问题的 ...

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

329. sound manager在MOUSE_OVER事件中无法播放 [ 45%]

...             button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center");             Laya.stage.addChild(button);             return button;         }          private onPlayMusic(e: Event): void {         ...

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

330. LayaAir2.0在编辑模式中不能打开Scene目录下面的文件 [ 45%]

...写了 宋体 字体】 在【项目设置】填写了【默认字体:12px 宋体】   【继续优化提问】 如果需要用到其他指定的【字体】需要怎么填写呢? 上面的写法,应该怎么改?   2019-05-09 0 0 分享 微博 QZONE 微信 133*****212 赞同来自: 这个...

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