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

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

71. 在UI编辑器里可以看到位图字体,但是进入游戏后没有显示,怎么解决 [ 75%]

...fnt与png文件同名 this.mBitmapFont.loadFont("font/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ //如果位图字体中,没放空格,最好设置一个空格宽度 this.mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(this.mFontName,this.m...

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

72. 二次开发 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...etString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello JS!"); } catch (JSONException e) { e.printStackTrace(); } ExportJavaFunction.CallBackTo...

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

73. list只能显示一个图片 [ 75%]

...kin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler.create(this,this.onRenderList); this.list1.selectHandler = new Laya.Handler.create(this,this.onListSelect)设置renderHandler和selectHandler, _proto.onListSelect = function(index){ console.log(inde...

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

74. laya图片路径问题 [ 75%]

...od/f8.png", "/public/test/img/food/f9.png", ];    Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT);   这个样能加载。 但是 var roleAni = new Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addCh...

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

75. 图片不能按轴心旋转 [ 75%]

... Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",0,0,0,0,Handler.create(this,aa)); function aa(texture){ bg.pivot(texture.width,texture.height); bg.alpha = 1; bg.rotation = 10; } 2018-05-19 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已...

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

76. 向量做矩阵变换的方法是什么 [ 75%]

...是不是哪里没用对?并不能替换是为什么?? 源代码中Handler中的setTo()方法 对象池的使用方法是不是先new一个类然后在存到对象池 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 在js代码中,let 是...

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

77. UI界面加载有哪些回调方法可用 [ 74%]

...用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布...

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

78. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 74%]

...].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-21 16:44 你这个是list的逻辑,item的更新逻辑呢。item拿到数据后你做了什么处理? z624697 • 2018-03-21 16:46 现在是我将...

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

79. 粒子中引用的图片能合图吗 [ 74%]

...ER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) {     let part = new Laya.Particle...

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

80. ui.TestPUI() 找不到 [ 73%]

....bgColor = "#ffffff"; Laya.loader.load("./res/atlas/blackMagic.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ var efc =new ui.TestPUI(); Laya.stage.addChild(efc); } //new ui.TestPUI(); 这个东西找不到。我是按照官方文档动效模板来操作的。     2019-04-24 添...

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