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

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

831. 关于laya无法缓存非图片、声音文件bug [ 46%]

...域加载图片 发布到vivo平台后,龙骨动画无法显示 请问下loader如何强制加载一个文件,避免浏览器的缓存 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? 问题状态 最新活动: 2020-09-23 15:11 浏览: 7047 关注: 7 ...

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

832. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 46%]

... = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.add...

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

833. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 46%]

...showall";         Laya.stage.bgColor = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addCh...

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

834. 分享:Panel下动态修改子容器宽高并刷新显示! [ 46%]

...载资源,此处添加button和panel垂直滚动条的皮肤使用 Laya.loader.load(['button-4.png','ui/vscroll.png','ui/vscroll$bar.png','ui/vscroll$down.png','ui/vscroll$up.png'],Handler.create(this,start)); } private function start():void { var panel:Panel=new Panel();//添加panel,切忌要...

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

835. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 46%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.a...

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

836. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 45%]

...; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.na...

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

837. 【简单跑酷--JS版】---Lv.6 终篇 [ 45%]

... = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } th...

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

838. 【简单跑酷--JS版】---Lv.3 添加地板 [ 45%]

...要预加载 上一节有讲到 修改加载的地方 //加载图片 Laya.loader.load(["res/background.png", "res/m_background.png", "res/floor.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Fl...

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

839. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 45%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["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.onCompl...

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

840. [LayaAirIDE3]2d相机打包后问题 [ 45%]

...载建筑图片     private loadBuildingImage(): void {         Laya.loader.load(             "res/building.png", // 你的建筑图片路径             Laya.Handler.create(this, () => {                 // 加载完成后绘制到building Sprite上               ...

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