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

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

111. 富文本使用图集 [ 68%]

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

112. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 68%]

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

113. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 68%]

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

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

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

115. 这样的panel请问如何实现比较好? [ 68%]

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

116. Laya2.6.1 LayaNative 物理系统physicsSimulation.shapeCast调用奔溃 [ 68%]

...轴动画里创建的多个动画,怎么分别调用?如图 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 调用动画结束on方法,报错this.zombieAnimator.on is not a function Laya2.1.0 JS调用Java PlatformClass u...

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

117. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 68%]

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

118. LayaAir IDE 语言包的使用? [ 68%]

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

119. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 68%]

...轴动画里创建的多个动画,怎么分别调用?如图 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2017-09-27 15:37 浏览: 1114 关注: 2 人 haiboannacom • 2017-09-27 15:34 上传的例子里生效了啊。之前是只走0-60帧。...

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

120. UI-Clip [ 68%]

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