大约有 988 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
...,就解决方案 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 官网LayaAir 1.4(TS)内容与LayaAirIDE 1.4中新建的TS空工程所带lib内容有差异 官网提供的一些修改过的第三方库,以后是否有打算增加一些as的mvc...
来源: Laya_社区 发布时间: 20180707
...预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh"); this.scene.addCh...
来源: Laya_社区 发布时间: 20170809
...package { import laya.ui.ColorPicker; import laya.utils.Handler; public class ColorPicker_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya...
来源: Laya_社区 发布时间: 20171120
..."./LayaScene_111/Conventional/smoke.lh"]; Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Conventional/NewBuilds.lh");方法去读取相应的文件,可是发现资源加载还是很慢,好久才进入到c...
来源: Laya_社区 发布时间: 20190702
...sionObject undefined 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 2.0 beta4 ts 含demo 在纵向滑动 list 的 renderHandler中给item中的Label组件赋值 字体被释放 ios 背景音乐需要手动点一下屏幕才能播放 求一个没问...
来源: Laya_社区 发布时间: 20191109
...al(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图...
来源: Laya2.0_文档 发布时间: 20210714
...aya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("...
来源: Laya_社区 发布时间: 20160722
...件)编程模式 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2018-01-30 12:15 浏览: 1114 关注: 2 人 helegame • 2018-01-30 12:44 我现在需要在 修改skin的时候 做某种操作 怎么做? qian • 2018...
来源: Laya_社区 发布时间: 20180130
...es/fontWord.fnt", type: Laya.Loader.FONT }); Laya.loader.load(assets, Laya.Handler.create(this, onAssetsLoaded)); function onAssetsLoaded(){ var bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/fontWord.fnt"); //必出错 } 只要使用 Laya.Loader.FONT 必出错 难道是要改...
来源: Laya_社区 发布时间: 20170329
....tw1 = Laya.Tween.to(this.load_1, { scaleX:0.01 }, 250, Laya.Ease.quadOut, Handler.create(this, this.tw1Complete1)); 只要是设置scale值最终变为0就有问题,, var style=this.getStyle(); 这个获取的style是空的,,这个问题不是必现的,,,,, 附件 : --> 2018-03-15...
来源: Laya_社区 发布时间: 20180315