大约有 310 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0045 秒)
Laya_社区(209) Laya3.0_api(22) Laya2.0_文档(22) Laya3.0_文档(20) Laya_示例(16) Laya2.0_示例(15) laya_api(3) Laya2.0_api(3)
... [error] Undefined class: ani 这是我哪里用的不对吗? Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS); public function createAnimation():void { var appendHtml:HTMLDivElement=new HTMLDivElement(); ...
来源: Laya_社区 发布时间: 20180309
...e === Keyboard.H) { sp.visible = false; //隐藏界面,清理资源 Laya.loader.clearTextureRes("res/bg.jpg"); Laya.loader.clearTextureRes("res/fighter.atlas"); } else if (e.keyCode === Keyboard.S) { //显示界面,资源会自动恢复 sp.visible = true; } } } } ``` **clearTextureRes** 销毁Te...
来源: Laya2.0_文档 发布时间: 20210714
...e === Keyboard.H) { sp.visible = false; //隐藏界面,清理资源 Laya.loader.clearTextureRes("res/bg.jpg"); Laya.loader.clearTextureRes("res/fighter.atlas"); } else if (e.keyCode === Keyboard.S) { //显示界面,资源会自动恢复 sp.visible = true; } } } } ``` **clearTextureRes** 销毁Te...
来源: Laya2.0_文档 发布时间: 20200929
...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:ListPageUI;//UI面板 private var arr:Array;//list...
来源: Laya_社区 发布时间: 20170313
...Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS); } } new GameMain(); Test.zip 2018-08-10 0 1 分享 微博 QZONE 微信 Bert ...
来源: Laya_社区 发布时间: 20180810
...轴动画里创建的多个动画,怎么分别调用?如图 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 调用动画结束on方法,报错this.zombieAnimator.on is not a function Laya2.1.0 JS调用Java PlatformClass u...
来源: Laya_社区 发布时间: 20200509
...fairygui界面报错, fgui.UIConfig.packageFileExtension = "json"; Laya.loader.load([ { url: "res/Basics_atlas0.png", type: Laya.Loader.IMAGE }, { url: "res/Basics.json", type: Laya.Loader.BUFFER } ], Laya.Handler.create(this, this.onLoaded)); } onLoaded(): void { console...
来源: Laya_社区 发布时间: 20191030
...age { import laya.display.Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("l...
来源: Laya_社区 发布时间: 20161018
...轴动画里创建的多个动画,怎么分别调用?如图 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2017-09-27 15:37 浏览: 1114 关注: 2 人 haiboannacom • 2017-09-27 15:34 上传的例子里生效了啊。之前是只走0-60帧。...
来源: Laya_社区 发布时间: 20170927
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } showBg() { const Image =...
来源: Laya2.0_示例 发布时间: 20260106