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

大约有 1,273 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0063 秒)

1041. laya.ui.Dialog [ 49%]

...方向中心线的距离(以像素为单位)。 View  closeEffect : Handler 关闭对话框效果,可以设置一个效果代替默认的关闭效果,如果不想有任何效果,可以赋值为null 全局默认关闭效果可以通过manager.closeEffect修改 Dialog  closeHandler : Han...

来源: Laya2.0_api 发布时间: 20190513

1042. 加载.atlas动画错误 [ 49%]

...法 roleAni.loadAtlas("http://10.10.20.58/chicken/res ... ot%3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); }));     代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载...

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

1043. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 49%]

.../?Particle_T1  ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);           public function onAssetsLoaded(settings:ParticleSetting):void         {             sp = new Particle2D(settings);            ...

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

1044. 2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug [ 48%]

...方    }    else {    MiniFileMgr.downOtherFiles(tempUrl, new Laya.Handler(MiniLoader, MiniLoader.onDownImgCallBack, [url, thisLoader]), tempUrl);    }    }    else    thisLoader._loadImage(url, true);//修改地方    }    else {    thisLoader._loadImage(url, true);//修改地...

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

1045. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 48%]

...模式都不行 //加载动画 load(aniUrl: string,emoji?:string,complete?:Handler):void{ if (emoji) { this.emoji=emoji; } if (complete) { this.completeHandler = complete; } this.aniUrl = aniUrl; this.templet = new Templet(); this.templet.on(Event.COMPLETE, this, this.parseComplete); // this.templet...

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

1046. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 48%]

...t);  let partPath = "res/aixin_bao.part"; Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); }  onAssetsLoaded(settings) {         // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源   ...

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

1047. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 48%]

...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个wor...

来源: Laya2.0_文档 发布时间: 20210715

1048. laya.ui.ViewStack [ 48%]

...ion : Node 获取或设置当前选择的项对象。 ViewStack  setIndexHandler : Handler 索引设置处理器。 默认回调参数:index:int ViewStack skewX : Number水平倾斜角度,默认值为0。以角度为单位。Sprite skewY : Number垂直倾斜角度,默认值为0。以角度...

来源: Laya2.0_api 发布时间: 20190513

1049. 导航容器组件 · LayaAir3.0文档 · LAYABOX [ 48%]

...一次 onAwake(): void { //点击Tab选择按钮的处理 this.tab.selectHandler = new Laya.Handler(this, this.onSelecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 this.viewstack.selectedIndex = index; } } 最终的效果如动图1...

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

1050. 提示资源重复加载 [ 48%]

...); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolan...

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