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

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

331. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 52%]

...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果...

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

332. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 52%]

...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }...

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

333. laya2.x 图集的资源版本管理问题 [ 52%]

...存在 https://3dparking-1256769450.cos.ap-shanghai.myqcloud.com/test/res/atlas/main.png   2019-06-13 0 12 分享 微博 QZONE 微信 kylin 赞同来自: 目前来看,即使加了版本管理,引用云上资源仍然引用的无版本号的资源。现在的问题是即使是无版本管理的...

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

334. 安卓上的百度小游戏,playMusic会出现多个背景音乐 [ 52%]

...的话,会有资源load不上来,报错:[error]Failed to load: res/atlas/test.atlas H5_Gamker • 2020-06-23 19:55 是不是换了适配库之后外面有些调用会对不上 157*****593 • 2020-06-23 20:16 清理一下缓存 H5_Gamker • 2020-06-24 09:33 换了新的库之后,之前的...

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

335. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 51%]

...载图集资源,加载成功后添加到舞台 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例导出的UI类 var efc:EffectAnimationDemoUI = new EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } } } ``` 运...

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

336. laya.net.LoaderManager [ 51%]

...源是否已经加载完毕。 注意:cache参数只能对文件后缀为atlas的资源进行缓存控制,其他资源会忽略缓存,强制重新加载。 LoaderManager  decodeBitmaps(urls:Array):void 解码Texture或者图集 LoaderManager event(type:String, data:* = null):Boolean 派发...

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

337. 关于大量图片加载绘制后的内存暴增的疑问 [ 51%]

...w(); Laya.stage.bgColor="#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private fun...

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

338. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 51%]

...r logo = new Laya.Sprite(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.heigh...

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

339. 分享:List相关(Item增删功能) [ 50%]

...#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫...

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

340. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...行 this.txtin.overflow = "scroll"; //文本溢出 // this.txtin.skin = "atlas/comp/textinput.png"; //皮肤 this.txtin.bgColor = "#19a4f1"; //背景颜色 this.txtin.borderColor = "#f6ff03" //边框颜色 this.txtin.editable = true; //可编辑状态 // this.txtin.type = "password"; //输入框类...

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