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

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

1061. 自定义Laya.Tab的item,tab注册的selectHandler无法触发到回调函数 [ 48%]

自定义Laya.Tab的item,tab注册的selectHandler无法触发到回调函数 我需要自定义tab里面的item项,在编辑器自定义了tabItem.scene。 在另一个View里面创建3个这个tabItem对象,命名item0,item1,item2,选中转换为容器Tab命名为myTab。 但是在该View...

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

1062. laya.ui.TextInput_API3.0 [ 48%]

...e { import laya.display.Stage; import laya.ui.TextInput; import laya.utils.Handler; public class TextInput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load...

来源: Laya3.0_api 发布时间: 20231115

1063. laya.ui.Dialog [ 48%]

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

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

1064. 小程序开放域相关 [ 48%]

...Message(onGetMessage);             Laya.loader.load(urlconfig,new Handler( null,onLoaded),null);                          function onLoaded():void {                 trace("urlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigv");  ...

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

1065. laya.net.Loader_API3.0 [ 48%]

...url: string | ILoadURL | (string | Readonly<ILoadURL>)[], complete?: Handler, progress?: Handler, type?: string, priority?: number, cache?: boolean, group?: string, ignoreCache?: boolean, useWorkerLoader?: boolean): Promise<any> Defined in laya/net/Loader.ts:204 加载资源。 Parameter...

来源: Laya3.0_api 发布时间: 20231115

1066. laya.ui.TextArea_API3.0 [ 48%]

... TextArea 实例。 package { import laya.ui.TextArea; import laya.utils.Handler; public class TextArea_Example { public function TextArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/inpu...

来源: Laya3.0_api 发布时间: 20231115

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

.../?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

1068. 加载.atlas动画错误 [ 48%]

...法 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

1069. 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

1070. 多线程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