大约有 160 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
...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
...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
...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
...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
... 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
...是不是哪里没用对?并不能替换是为什么?? 源代码中Handler中的setTo()方法 对象池的使用方法是不是先new一个类然后在存到对象池 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 在js代码中,let 是...
来源: Laya_社区 发布时间: 20180509
...用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布...
来源: Laya_社区 发布时间: 20170720
...].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
...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
....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