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

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

1. laya.net.Loader [ 100%]

...(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getAtlas(url:String):Array[static] 获取指定资源地址的图集地址列表。 Loader  getRes(url:String):*[static] 获取指定资源地址的资源。 Loader hasListener(type:String):Boolean 检查 EventDispatcher 对...

来源: laya_api 发布时间: 20170929

2. 性能测试-卡通人物 [ 97%]

...haractors.json", Handler.create(this, this.createCharacters), null, Loader.ATLAS); } createCharacters() { characterGroup = []; for(let i = 0; i = 0; --i) { this.animateCharactor(characterGroup[i]); } } animateCharactor(charactor) { charactor.x += moveSpeed; charactor.rotation += rotateSpeed; if (cha...

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

3. 动画-图集动画 [ 94%]

...ayaAirIDE让项目开发更高效。let aniConfPath = "res/fighter/fighter.atlas"; class Animation_Altas { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.align...

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

4. IDE-显示IDE创建的界面 [ 93%]

...; } } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game...

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

5. laya.net.LoaderManager [ 64%]

...源是否已经加载完毕。 注意:cache参数只能对文件后缀为atlas的资源进行缓存控制,其他资源会忽略缓存,强制重新加载。 LoaderManager event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getRes(url:String):* 获取指定资源地址...

来源: laya_api 发布时间: 20170929