大约有 160 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
...清理 石圣 • 2018-12-03 11:19 是的 如果改一下Timer里面存储handler的数据结构就可以实现了。这种需求很正常啊 不知道官方为啥说要避免这种写法。可能移除多个相同域的相同方法需要一个遍历操作,性能损耗比较大? 伯恩 • 2018-...
来源: Laya_社区 发布时间: 20180719
...png', 'comp/button.png', 'comp/image.png']; myTestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender); function onImgListRender(box: Laya.Box) { let model = box.dataSource; let panel = box.getChildByName('panel') as Laya.Panel; let img = panel.getChi...
来源: Laya_社区 发布时间: 20180514
...Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常...
来源: Laya_社区 发布时间: 20170829
...能console出,那个list中的数据也存在,但没渲染出。 Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa...
来源: Laya_社区 发布时间: 20170321
ani时间轴动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); //添加到舞台 ...
来源: Laya_社区 发布时间: 20171012
...复 Monica - 知识达人 赞同来自: 加载进度的回调你是用的Handler.create吗?如果是的话需要设置create里边的最后一个参数为false 2017-09-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****367 相...
来源: Laya_社区 发布时间: 20170909
...p/28.jpg", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index...
来源: Laya_社区 发布时间: 20171124
...ad(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } } onComplete(): void { //初始化rank排行榜 var rank = new BigR...
来源: Laya_社区 发布时间: 20190307
...所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前的资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D 这样就原图片地址是个Texture2D,生成的URL地址是个Texture 2019-02-19 0...
来源: Laya_社区 发布时间: 20181221
...ows安装包吗? 请问 3D shader 预编译,需要怎么处理? Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 官方技术文档里:微信小游戏进阶处理,AS3,TS,JS并不相同,请问关于AS3的wxlocal白名单文件适...
来源: Laya_社区 发布时间: 20171103