大约有 1,515 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1204) Laya2.0_文档(80) Laya3.0_api(75) Laya_示例(42) Laya2.0_示例(40) Laya3.0_文档(33) Laya2.0_api(22) laya_api(19)
微信飞机大战报错 调用堆栈:"Cannot set property 'text' of undefined" 调试控制台输出:Error processing "evaluate": TypeError: Cannot read property 'api' of undefined at ChromeConnection.get api [as api] (d:\Program\LayaAirIDE_1.7.0\resources\app\extensions\laya-debug\node_mo...
来源: Laya_社区 发布时间: 20170416
...TMLDivElement 有%号,文字太长的时候%号会换到第二行? var text = new HTMLDivElement(); Laya.stage.addChild(text); text.color = "#fff"; text.style.fontSize = 24; text.innerHTML = "子弹命中率:<span style='color: #ee452c'>25</span>\/50 50%"; 用的是最新版...
来源: Laya_社区 发布时间: 20170326
...ailed to load: 调试工具正常,真机报错:Request failed Status:0 text( 加载场景失败) HttpRequest在ios系统出现Request failed Status:0 text:,安卓没事 scriptEngine 0xc30edooo loadScriptStringWithCodeCache failed 发布QQ包报错 安卓的QQ扫码时运行不出来 求助...
来源: Laya_社区 发布时间: 20180524
...释放问题! package { import laya.display.Sprite; import laya.display.Text; import laya.events.Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Stat; public class LayaAirDemo { private var sp:Sprite ;//被截屏对象 private var ...
来源: Laya_社区 发布时间: 20170822
...ic Methods MethodDefined By destroy():void 销毁位图字体,调用Text.unregisterBitmapFont 时,默认会销毁。 BitmapFont getCharTexture(char:String):Texture 获取指定字符的字体纹理对象。 BitmapFont getCharWidth(char:String):Number 获取指定字符的宽度。 Bit...
来源: laya_api 发布时间: 20170929
...自: 1、最好为你的label设置一个固定的宽高 2、如果label.text的内容超出了label.width,那么默认超出部分会从右侧继续延伸显示 3、如果label.text的内容小于等于label.width,你会发现label.text是居右对齐的 也就是说,label的对齐方式是...
来源: Laya_社区 发布时间: 20180126
...文本(根据电脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); this.text....
来源: Laya3.0_文档 发布时间: 20251010
...ChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { i...
来源: Laya_社区 发布时间: 20170215
...ndler; WebGL = Laya.WebGL; Animation = Laya.Animation; Label = Laya.Label; Text = Laya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; thi...
来源: Laya2.0_示例 发布时间: 20251209
...ter,无法更新到每个子节点,web是ok的 对一个包含sprite和text的sprite节点,设置filter,比如加一个gray。 在web上,该节点本身及其子节点的sprite和text都可以被正常灰化。 在native上,只有该节点可以被正常灰化,sprite和text都无效。...
来源: Laya_社区 发布时间: 20170717