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

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

241. timeline播放完成Bug [ 63%]

...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...

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

242. laya升级到2.0.0beat4版本,加载场景出现的bug [ 63%]

laya升级到2.0.0beat4版本,加载场景出现的bug 加载:Laya.loader.create("Laya/Conventional/Map_SCC.ls",Laya.Handler.create(this,this.LoadCompleteHandler)); 加载完成后: var scene3D:Laya.Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常:...

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

243. 我来改代码! [ 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

244. Laya.Video内存泄漏问题 [ 63%]

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

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_示例 发布时间: 20251130

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

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

248. 添加了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

249. 声音 soundManager [ 62%]

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

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

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

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

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