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

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

241. 我来改代码! [ 63%]

...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...

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

242. Laya.Video内存泄漏问题 [ 62%]

..., 800); Laya.Stat.show(0,0); var video_url = '带有音轨的视频'; Laya.loader.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_ur...

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

243. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 62%]

...与内容相关的链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     ...

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

244. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 62%]

...p=Sprite3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/three...

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

245. 滤镜-模糊滤镜 [ 62%]

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

246. 添加了MouseJoint没有效果 [ 62%]

添加了MouseJoint没有效果 代码:   let ropePartTexture = Laya.loader.getRes("test/b1.png"); let ropePart : Sprite = new Sprite(); ropePart.texture = ropePartTexture; ropePart.pos(48*vw,10*vh); ropePart.width = 4*vw; ropePart.height = 10*vh; let boxCollider = new laya.physics.BoxCollider()...

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

247. 声音 soundManager [ 62%]

...通过文件集加载的方法预加载声音文件,然后再调用 Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 如何停止所有音效而不停止背景声音 问题状态 最新活动: 2018-08-31 11:56 浏览: 529 关注: 1 人

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

248. 为啥IOS的声音很嘈杂 [ 62%]

...? 移动端为啥没有搜索按钮了。我都没法搜索问题啊 Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? android UC浏览器声音播放不了了 IOS使用Laya.GeoLocation错误 ios接入穿山甲sdk问题 问题状态 最新活动: 2018-05-18 20:11 浏览: 836 关...

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

249. zip资源解压 [ 62%]

...新资源问题 u3d 资源怎么做才能导入到layabox 里面用 Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 问题状态 最新活动: 2017-11-09 20:24 浏览: 1012 关注: 2 人

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

250. 怎样暂停声音 [ 62%]

...使用playSound没有声音 声音文件加载过后如何清除? Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? IOS 微信进入不能播放声音,只有点击一下界面才开始播放 ios手机上的声音无法播放 问题状态 最新活动: 2018-04-03 16:09 浏览: ...

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