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

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

151. 微信小游戏加载 BitmapFont 问题 [ 75%]

..."./js/dom_parser"); require("code.js");在加载这个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNati...

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

152. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 75%]

...板,urls接收的是图片地址集合,所以我们需要先使用Laya.loader.load()将图集文件先加载进来。下面我们直接看示例代码及注释。 ```typescript // 程序入口 class AtlasAniDemo{ private roleAni:Laya.Animation; constructor() { //初始化舞台 Laya.init(1334,75...

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

153. 如何读取json或者js中的内容 [ 75%]

...存里,如何画在画布上 atlas目录下.json文件与.atlas的区别 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 问题状态 最新活动: 2018-01-18 10:32 浏览: 914 关注: 2 人

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

154. 技术文档中的示例js运行报错 [ 75%]

...错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMa...

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

155. SCALE_FIXED_WIDTH适配屏幕的问题 [ 75%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

156. 关于预加载资源 [ 75%]

...接 提交 1 个回复 cuixueying 赞同来自: 你写加载类型了吗,Loader.ATLAS,可以上传一个重现问题的示例,我们来看下! 2017-04-19 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wuzhen5201314 相关问题 ...

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

157. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 74%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

158. 关于as版的Animation.createFrames()不能工作? [ 74%]

...ite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Lay...

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

159. 加载-销毁Texture使用的图片资源 [ 74%]

...let PathBg = "res/bg2.png", PathFly = "res/fighter/fighter.atlas"; class Loader_ClearTextureRes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, B...

来源: Laya2.0_示例 发布时间: 20260106

160. laya.net.LoaderManager [ 74%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实...

来源: Laya2.0_api 发布时间: 20190513