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

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

71. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 82%]

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

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

72. 资源版本问题 [ 82%]

...create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress() { (function loading() { Laya.loader.load([{ url...

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

73. 分享:Graphics下cmds命令流的使用! [ 82%]

...ge { import laya.display.Sprite; import laya.maths.Matrix; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class GraCmdsDemo { public function GraCmdsDemo() { //初始化舞台 Laya.init(Browser.width,Browser...

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

74. 在加载多个资源的时候,加载进度异常 [ 82%]

在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    c...

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

75. 加载不同域名下的单个图片 会重复加载两次,导致无法显示 [ 82%]

...A域名图片获取失败,导致图片不显示,什么原因   Laya.loader.load 方式预加载 附件 : --> 2017-09-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 方便给个例...

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

76. 微信小游戏加载 BitmapFont 问题 [ 82%]

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

77. graphics使用matrix的异常情况 [ 82%]

graphics使用matrix的异常情况 Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200...

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

78. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 81%]

...请: 与内容相关的链接 提交 3 个回复 谷主 赞同来自: Laya.loader.load("xx", {  propertyParams : { wrapModeU : Laya.WrapMode.Clamp, wrapModeV: Laya.WrapMode.Clamp } }) 2023-03-17 0 1 分享 微博 QZONE 微信 LayaAir3 赞同来自: 如果图片从网络下载是没法修改图...

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

79. 预加载音频文件遇到的问题 [ 81%]

...载音频的代码(JS飞机大战示例), //加载声音资源 Laya.loader.load("res/sound/bloodstream_bg.mp3", Laya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.cre...

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

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

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

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