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

大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)

281. 滤镜-模糊滤镜 [ 77%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture =...

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

282. 背景音乐文件太大 播放延迟 [ 77%]

...音乐文件太大 播放延迟 Laya   背景音乐太大 预加载 Laya.loader.load 音乐   Laya.SoundManager.playMusic 播放 会出现延迟效果    Laya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => {                 thi...

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

283. 内存释放问题 [ 77%]

...ion): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", type: Laya.Loader.ATLAS }, { url: resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH, type: Lay...

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

284. 如何显示动画ani [ 77%]

...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...

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

285. Laya.loader.create问题 [ 77%]

Laya.loader.create问题 使用Laya.loader.create方法加载了png图片 之后使用new Laya.Image(url),并添加到舞台,发现场景整个是黑的,未发现图片,而如果没使用Laya.loader.create,而直接new Laya.Image(url)的话,就会出现图片,这是为啥? 2017-05-1...

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

286. 你们这个API描述错乱了(Laya.loader.create())!!! [ 77%]

你们这个API描述错乱了(Laya.loader.create())!!! 你们这个API描述错乱了(Laya.loader.create()):https://layaair.ldc.layabox.com/api/?category=Core&class=laya.net.LoaderManager#create()     附件 : --> 2017-08-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

287. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 77%]

...的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.d...

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

288. [求助]无法使用loader预先加载 [ 77%]

[求助]无法使用loader预先加载 Laya.loader.retryNum = 0; var urls:Array = [ "res/mainpage/title.png", "res/mainpage/q.png", "res/mainpage/BtnNo.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader...

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

289. UNITY3D导出模型加载错误 [ 77%]

UNITY3D导出模型加载错误 laya.core.js:12371 Uncaught Error: LoaderManager:unknown file(http://127.0.0.1/layaair/myLaya3D1/bin/null path) extension with: 1. at LoaderManager.__proto._create (laya.core.js:12371) at LoaderManager.__proto.create (laya.core.js:12339) at Loader.Laya3D._onHierarchy...

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

290. 分享:LayaAir下如何获取图集下的小图资源? [ 77%]

...import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.js...

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