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

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

141. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 53%]

...了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

142. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 52%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#ffffff"; Laya.loader.load([this.texture1, this.texture2], Handler.create(this, this.onAssetsLoaded)); } private onAssetsLoaded(): void { this.ape = new Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(100,50); ...

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

143. 在native下 Laya.Browser.window.Blob不存在 [ 52%]

...ch.getCachePath()+"/test.png", png);保存到本地,然后再用laya.net.Loader加载,我刚才试了一下,加载报错,我不知道我这种方法可不可行。 test: function (base64Str, sprite) { var imageData = base64Util.decode(base64Str); var address = conch.getCachePath() + "/test.p...

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

144. WebSocket的握手失败 [ 52%]

...败 龙骨动画转换失败 Cannot read property 'name' of undefined Laya.loader.create 不会反馈失败状态跟描述不符合 laya微信小游戏加载外部素材失败 急急急 问题状态 最新活动: 2019-05-09 10:10 浏览: 1322 关注: 2 人

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

145. 有没有懂tiledmap地图的朋友帮忙看看问什么地图加载不出来 [ 52%]

...et; import laya.map.TiledMap; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(1500, 900); //加载引擎需要的资源 var map1:TiledMap = new TiledMap(); m...

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

146. UI加载完成后无法获取控件的大小——超详细版问题 [ 52%]

... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.m...

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

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

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

148. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 51%]

...我们可以用加载器预加载。 ​ 2D游戏资源我们是用**Laya.loader.load()**方法预加载,而3D资源必须用Laya.loader.create()这个方法。在加载完成后,我们就可以直接使用**Laya.loader.getRes()**这个方法来获取加载完成的资源。请参考的相关的...

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

149. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 51%]

...我们可以用加载器预加载。 ​ 2D游戏资源我们是用**Laya.loader.load()**方法预加载,而3D资源必须用Laya.loader.create()这个方法。在加载完成后,我们就可以直接使用**Laya.loader.getRes()**这个方法来获取加载完成的资源。请参考的相关的...

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

150. Cannot read property 'load' of null [ 51%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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