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

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

91. 人物行走图动画 [ 59%]

...二张图片(迈出左脚的那张图片)开始的。   还有Loader.ATLAS是static] 图集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Han...

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

92. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 58%]

...下: ```JavaScript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...

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

93. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 58%]

...ion beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //...

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

94. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 58%]

...于2D图集,需要说明一下,我们只支持LayaAirIDE自己生成的atlas图集纹理压缩。第三方的图集,我们并不支持。 LayaAirIDE生成的图集,我们可以在图片路径那一栏,拖入.png后缀图片或.atlas图集文件,都可以被识别,然后压缩成功的...

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

95. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 58%]

...下: ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...

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

96. laya.net.Loader_API3.0 [ 58%]

...ructors constructor Properties maxLoader retryDelay retryNum ANIMATIONCLIP ATLAS BUFFER FONT HIERARCHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURECUBE TTF VIDEO XML downloader extMap groupMap loadedMap preLoadedMap typeMap Accessors loading Methods cacheR...

来源: Laya3.0_api 发布时间: 20231115

97. 1整天了,还是没解决加载本地文件问题 [ 57%]

...ile:///E:/layabox/layaair-doc-master/project/AS3/AirWar/lesson8/bin/h5/res/atlas/gameUI.atlas. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. 另外 LayaIDE 编译打开经常只有黑屏,或者: 未定义任何生成任务。使用 "i...

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

98. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 57%]

...下: ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...

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

99. 批量预加载如果是图片或者声音类型,不会触发加载错误事件 [ 57%]

...t.png",type:laya.net.Loader.IMAGE}]);   如果指定的类型时json或者atlas是会触发错误事件的。 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ㍿ 赞同来自: 补充一下,只有在...

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

100. 图集打包后使用Texture不显示啊 [ 57%]

...tage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动画 //Laya.stage.addChild(ani); //动画正常显...

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